Minor tweak to Actions.

This commit is contained in:
2024-12-27 14:19:26 -05:00
parent 8ed6f77238
commit bd6a2a4333
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
chmod +x /usr/local/bin/tea
echo "Listing PRs..."
tea login add --name gitea-rinoa --url ${{ vars.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep -q 'open'
tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep 'open'
if [ $? -eq 0 ]; then
echo "PR already exists. Skipping PR creation."
echo "pr_state=open" >> "$GITHUB_OUTPUT"