From 991e0768b9bfb147d70d107165b17d2e3dd33651 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Thu, 9 Jan 2025 14:48:00 -0500 Subject: [PATCH] Troubleshooting create PR step. --- .gitea/workflows/deployment.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index 68547052..51946307 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -31,9 +31,10 @@ jobs: echo "Check if PR exists for ${{ github.ref_name }}" tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $4}' | sed -e 's|"||g' 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 + echo "PR_STATE: ${pr_state}" + 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 }}" - elif [ "${pr_state}" = open ]; then + elif [ ${pr_state} = open ]; then echo "PR already exists, skipping creation..." fi