Skip to content

Commit

Permalink
fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 7, 2024
1 parent 9a9b4ca commit c706e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
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 -E -q $tag_regex
tag_regex='^v[0-9]+\.[0-9]+\.[0-9]+$'
echo "$new_tag" | grep -E "$tag_regex"

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

0 comments on commit c706e33

Please sign in to comment.