Skip to content

Commit c3a8d43

Browse files
committed
improve debug messages
1 parent 371c87b commit c3a8d43

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

script/release

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ BOLD_GREEN='\033[1;32m'
3333
BOLD_BLUE='\033[1;34m'
3434
BOLD_PURPLE='\033[1;35m'
3535
BOLD_UNDERLINED='\033[1;4m'
36+
BOLD='\033[1m'
3637

3738
# Get the latest release tag
3839
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
4950

5051
# Validate the new release tag
5152
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"
5355
else
5456
# 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)"
5658
exit 1
5759
fi
5860

@@ -68,9 +70,9 @@ fi
6870

6971
# Tag the new release
7072
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}"
7274

7375
# Push the new tag to the remote
7476
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"
7678
echo -e "${BOLD_GREEN}Done!${OFF}"

0 commit comments

Comments
 (0)