This commit is contained in:
2025-01-19 10:27:19 -05:00
parent a0c4556067
commit 3b7d428f10
@@ -38,6 +38,7 @@ jobs:
- name: Create PR
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
run: |
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 pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | egrep -v 'index' | head -1 | awk -F, '{print $1}'
pr_index_old=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | egrep -v 'index' | head -1 | awk -F, '{print $1}' | sed -e 's|"||g')
pr_index_new=$(expr ${pr_index_old} + 1)