From 7a79adf12e8992fffe86c0c0ade89d1d93fa7a63 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 16 Aug 2022 19:13:01 +0200 Subject: [PATCH] ci-auto-update: ignore release candidates --- .github/workflows/updater.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 6aa3d2b..218e48e 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -41,6 +41,10 @@ echo "PROCEED=false" >> "$GITHUB_ENV" if ! dpkg --compare-versions "$current_version" "lt" "$version" ; then echo "::warning ::No new version available" exit 0 +# Proceed only if the retrieved version is not a release candidate +elif [[ "$version" == *"rc"* ]] ; 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"