File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ BOLD_GREEN='\033[1;32m'
33
33
BOLD_BLUE=' \033[1;34m'
34
34
BOLD_PURPLE=' \033[1;35m'
35
35
BOLD_UNDERLINED=' \033[1;4m'
36
+ BOLD=' \033[1m'
36
37
37
38
# Get the latest release tag
38
39
if ! latest_tag=$( git describe --abbrev=0 --match=" $tag_glob " ) ; then
@@ -49,10 +50,11 @@ read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag
49
50
50
51
# Validate the new release tag
51
52
if echo " $new_tag " | grep -q -E " $tag_regex " ; then
52
- echo -e " Tag: ${BOLD_BLUE} $new_tag ${OFF} is valid"
53
+ # Release tag is valid
54
+ echo -e " Tag: ${BOLD_BLUE} $new_tag ${OFF} is valid syntax"
53
55
else
54
56
# Release tag is not `vX.X.X` format
55
- echo -e " Tag: ${BOLD_BLUE} $new_tag ${OFF} is ${BOLD_RED} not valid${OFF} (must be in vX.X.X format)"
57
+ echo -e " Tag: ${BOLD_BLUE} $new_tag ${OFF} is ${BOLD_RED} not valid${OFF} (must be in ${BOLD} vX.X.X${OFF} format)"
56
58
exit 1
57
59
fi
58
60
68
70
69
71
# Tag the new release
70
72
git tag -a " $new_tag " -m " $new_tag Release"
71
- echo -e " ${BOLD_GREEN} Tagged: $new_tag ${OFF} "
73
+ echo -e " Tagged: ${BOLD_GREEN} $new_tag ${OFF} "
72
74
73
75
# Push the new tag to the remote
74
76
git push --follow-tags
75
- echo -e " ${BOLD_GREEN} Release tag pushed to remote${OFF} "
77
+ echo -e " Tags: ${BOLD_GREEN} $new_tag ${OFF} pushed to remote"
76
78
echo -e " ${BOLD_GREEN} Done!${OFF} "
You can’t perform that action at this time.
0 commit comments