Troubleshooting create PR step.

This commit is contained in:
2025-01-09 14:35:51 -05:00
parent a1e3cd9196
commit 79f55b9326
+3
View File
@@ -27,6 +27,9 @@ jobs:
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 }}
which tea
tea login default gitea-rinoa
echo "List all PRs"
tea pr ls --state all
echo "Check if PR exists for ${{ github.ref_name }}"
pr_state=$(tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $4}' | sed -e 's|"||g')
if [ "${pr_state}" != open ]; then
tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"