From 1c391ceb8b9d2748fa1db859be32fcd091df51b6 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Wed, 15 Jan 2025 11:01:58 -0500 Subject: [PATCH] . --- .gitea/workflows/deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deployment.yml b/.gitea/workflows/deployment.yml index c8d3d74e..2fd080c3 100644 --- a/.gitea/workflows/deployment.yml +++ b/.gitea/workflows/deployment.yml @@ -30,7 +30,7 @@ jobs: tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep '${{ github.ref_name }}' | head -1 | egrep -q 'open' if [ $? -eq 0 ]; then echo "An open PR exists, skipping creation..." - elif [ $? -eq 1 ]; then + elif [ $? -ne 0 ]; then echo "No open PRs, creating one..." tea pr c -r "${{ github.repository }}" -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}" fi