This commit is contained in:
2024-12-27 16:49:31 -05:00
parent 0114b20894
commit 3e93b2de3b
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
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 }}
pr_state=$(tea pr ls --state all --fields index,state,head --output csv | head -2 | tail -1 | awk -F, '{print $2}' | sed -e 's|"||g')
echo "pr_state=$(pr_state)" >> $GITHUB_OUTPUT
echo "PR state: $pr_state"
- name: Create PR
if: steps.list-prs.outputs.pr_state != 'open'