This commit is contained in:
2025-01-19 09:55:37 -05:00
parent b34392662c
commit 3dbf100575
@@ -33,7 +33,7 @@ jobs:
echo "Adding tea login"
tea login add --name gitea-rinoa --url ${{ secrets.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
tea login default gitea-rinoa
tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv
tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | head -2
echo "Checking for existing PRs..."
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}