This commit is contained in:
2025-01-16 10:11:13 -05:00
parent 1fe676de60
commit 1cfeba0c6f
@@ -29,7 +29,7 @@ jobs:
echo "Setting default login to gitea-rinoa..."
tea login default gitea-rinoa
echo "Checking for existing PRs..."
pr_exists=$(tea pr list --repo ${{ github.repository }} --state open --fields index,title,head | egrep ${{ github.ref_name }} | wc -l)
pr_exists=$(tea pr list --repo ${{ github.repository }} --state open --fields index,title,head | egrep ${{ github.ref_name }} | tail -1 | wc -l)
echo ${pr_exists}
echo "exists=$pr_exists" >> $GITHUB_OUTPUT