a
This commit is contained in:
@@ -5,7 +5,8 @@ echo $CURRENT_VERSION
|
||||
PREVIOUS_VERSIONS=$(git tag -l)
|
||||
echo $PREVIOUS_VERSIONS
|
||||
|
||||
if [[ -z "$PREVIOUS_VERSIONS" ] || [ $PREVIOUS_VERSIONS =~ (^|[[:space:]])$CURRENT_VERSION($|[[:space:]]) ]]; then
|
||||
if [ -z "$PREVIOUS_VERSIONS" ] || [[ $PREVIOUS_VERSIONS =~ (^|[[:space:]])$CURRENT_VERSION($|[[:space:]]) ]]
|
||||
then
|
||||
echo "Tag for version $(CURRENT_VERSION) not found. Creating tag..."
|
||||
git tag -a -m "Version $(CURRENT_VERSION)" $CURRENT_VERSION
|
||||
git push --follow-tags
|
||||
|
||||
Reference in New Issue
Block a user