From 9d68464ad5e3655669a84be822dc42238374931f Mon Sep 17 00:00:00 2001 From: Florian Krauthan Date: Sat, 11 Dec 2021 10:23:39 -0800 Subject: [PATCH] Updated release script (tag detection) --- release.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/release.sh b/release.sh index f06a28f..b071c1e 100755 --- a/release.sh +++ b/release.sh @@ -71,10 +71,19 @@ elif [ "$PLUGINVERSION" = "$READMEVERSION" ] && [ "$PLUGINVERSION" = "$READMEMDV fi if git show-ref --tags --quiet --verify -- "refs/tags/$PLUGINVERSION"; then - echo "Version $PLUGINVERSION already exists as git tag. Exiting...." - exit 1 + if [[ $GITHUB_ACTIONS ]]; then + echo "Version $PLUGINVERSION git tag found" + else + echo "Version $PLUGINVERSION already exists as git tag. Exiting...." + exit 1 + fi else - echo "Git version does not exist. Let's proceed..." + if [[ $GITHUB_ACTIONS ]]; then + echo "Git version does not exist. This is required to proceed. Exiting...." + exit 1 + else + echo "Git version does not exist. Let's proceed..." + fi fi # Tag new version