This commit is contained in:
@@ -47,7 +47,9 @@ 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
|
||||
echo ">> Branch '${BRANCH_NAME}' exists, pulling changes ..."
|
||||
|
||||
Reference in New Issue
Block a user