From fb04d2c3f2ee6c14f7ca2af1fee70ff5b03fcda4 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 8 Feb 2022 21:07:30 +0100 Subject: [PATCH] Enable the branch existence test for auto-updater --- .github/workflows/updater.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index c29a131..ede8049 100644 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -39,9 +39,9 @@ if ! dpkg --compare-versions "$current_version" "lt" "$version" ; then echo "::warning ::No new version available" exit 0 # Proceed only if a PR for this new version does not already exist -#elif git ls-remote -q --exit-code --heads https://github.com/$GITHUB_REPOSITORY.git ci-auto-update-v$version ; then -# echo "::warning ::A branch already exists for this update" -# exit 0 +elif git ls-remote -q --exit-code --heads https://github.com/$GITHUB_REPOSITORY.git ci-auto-update-v$version ; then + echo "::warning ::A branch already exists for this update" + exit 0 fi #=================================================