From 21f665afeef29e0a15728bbecb221a910ba324f0 Mon Sep 17 00:00:00 2001 From: Bryce Thorup Date: Mon, 1 Jan 2024 09:34:27 -0700 Subject: [PATCH] a --- action.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.sh b/action.sh index 00542fc..eedabc8 100755 --- a/action.sh +++ b/action.sh @@ -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