This commit is contained in:
2025-01-14 13:08:33 -05:00
parent 52bd1fa698
commit 669ee23ee9
+1 -1
View File
@@ -28,7 +28,7 @@ jobs:
tea login default gitea-rinoa
echo "Checking if PR exists for ${{ github.ref_name }}"
tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state
tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep -q '${{ gitea.ref_name }}'
tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep -q '${{ github.ref_name }}'
if [ $? -eq 0 ]; then
echo "PR exists, checking state..."
pr_state=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep '${{ github.ref_name }}' | awk -F',' '{print $4}')