don't use error hanndling
All checks were successful
renovate / renovate (push) Successful in 1m0s

This commit is contained in:
2025-12-01 18:20:47 -06:00
parent ef96e0fc71
commit a68e3f8967

View File

@@ -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}"