Minor tweak to Actions.

This commit is contained in:
2024-12-27 14:13:59 -05:00
parent 37df7a2f16
commit 3fb31d024b
+2 -2
View File
@@ -21,11 +21,11 @@ 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 }}
pr_state=$(tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep 'open|closed|merged' | awk -F, '{print $3}' | sed -e 's|"||g')
pr_state=$(tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep 'open' | awk -F, '{print $3}' | sed -e 's|"||g')
echo "pr_state=$(echo ${pr_state})" >> "$GITHUB_OUTPUT"
- name: Create PR
if: steps.list-prs.outputs.pr_state == 'closed'
if: steps.list-prs.outputs.pr_state != 'open'
uses: arifer612/Gitea-PR-action@v1.2.0
with:
url: ${{ gitea.server_url }}