Skip to content

Commit

Permalink
Updated release script (tag detection)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkrauthan committed Dec 11, 2021
1 parent 7b4aeba commit 9d68464
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d68464

Please sign in to comment.