Skip to content

Commit 67934fe

Browse files
committed
move tag_regex to variables section
1 parent 36ccc40 commit 67934fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/release

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#
1919
# script/release
2020

21+
# Variables
22+
tag_regex='v[0-9]+\.[0-9]+\.[0-9]+$'
23+
2124
# Terminal colors
2225
OFF='\033[0m'
2326
RED='\033[0;31m'
@@ -40,7 +43,6 @@ echo -e "The latest release tag is: ${BLUE}${latest_tag}${OFF}"
4043
read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag
4144

4245
# Validate the new release tag
43-
tag_regex='v[0-9]+\.[0-9]+\.[0-9]+$'
4446
if echo "$new_tag" | grep -q -E "$tag_regex"; then
4547
echo -e "Tag: ${BLUE}$new_tag${OFF} is valid"
4648
else

0 commit comments

Comments
 (0)