Skip to content

Commit

Permalink
release script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Jul 19, 2024
1 parent dd1b9d8 commit 91f77d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
read -p 'New Release Tag (vX.X.X format): ' new_tag

tag_regex='^v\d\.\d\.\d$'
echo "$new_tag" | grep -P -q $tag_regex
echo "$new_tag" | grep -E -q $tag_regex

if [[ $? -ne 0 ]]; then
echo "Tag: $new_tag is valid"
echo -e "${RED}ERROR${OFF} - Tag: $new_tag is not valid. Please use vX.X.X format."
exit 1
fi

git tag -a $new_tag -m "$new_tag Release"
Expand Down

0 comments on commit 91f77d0

Please sign in to comment.