From 4c6736579953d17e7cf5c1dfcb27c0917db6b0d2 Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Fri, 21 Jul 2023 22:18:39 +0300 Subject: [PATCH] build: Allow "v" in tagged versions. --- .github/workflows/deploy-tagged.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-tagged.yml b/.github/workflows/deploy-tagged.yml index 83c324d9..b778fc12 100644 --- a/.github/workflows/deploy-tagged.yml +++ b/.github/workflows/deploy-tagged.yml @@ -32,7 +32,7 @@ jobs: VERSION=$(cat gradle.properties | grep -iE "version([ ]*)=" | cut -f 2 -d "=") echo $REF echo $VERSION - if [[ "$REF" != "refs/tags/$VERSION" ]]; then + if [[ "$REF" != "refs/tags/$VERSION" && "$REF" != "refs/tags/v$VERSION" ]]; then echo "Version mismatch - gradle.properties contains a different version than the git tag! Exiting!" exit 1 fi