From a68e3f8967451b140cfb8934e304ad4c1bda86ed Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 1 Dec 2025 18:20:47 -0600 Subject: [PATCH] don't use error hanndling --- .gitea/workflows/render-manifests.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitea/workflows/render-manifests.yaml b/.gitea/workflows/render-manifests.yaml index f51684fc4..ea2096f20 100644 --- a/.gitea/workflows/render-manifests.yaml +++ b/.gitea/workflows/render-manifests.yaml @@ -47,11 +47,7 @@ jobs: git config user.email "gitea-bot@alexlebens.net" echo ">> Checking if PR branch exists ..." - set e+ - git ls-remote --exit-code --heads origin "${BRANCH_NAME}" > /dev/null 2>&1 - set e- - - if [ $? -eq 0 ]; then + if [[ $(git ls-remote --heads origin "${BRANCH_NAME}" | wc -l) -gt 0 ]]; then echo ">> Branch '${BRANCH_NAME}' exists, pulling changes ..." git fetch origin "${BRANCH_NAME}" git checkout "${BRANCH_NAME}"