This commit is contained in:
2025-01-15 11:01:58 -05:00
parent 260c6a8aa5
commit 1c391ceb8b
+1 -1
View File
@@ -30,7 +30,7 @@ jobs:
tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep '${{ github.ref_name }}' | head -1 | egrep -q 'open'
if [ $? -eq 0 ]; then
echo "An open PR exists, skipping creation..."
elif [ $? -eq 1 ]; then
elif [ $? -ne 0 ]; then
echo "No open PRs, creating one..."
tea pr c -r "${{ github.repository }}" -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"
fi