From 79f55b93260cac37b47080738dc3239c432ac7f9 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 9 Jan 2025 14:35:51 -0500 Subject: [PATCH] Troubleshooting create PR step. --- .gitea/workflows/deployment.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index 0d3e21fc..159f3058 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -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 }}"