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 #=================================================