File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ BLUE='\033[0;34m'
28
28
latest_tag=$( git describe --tags " $( git rev-list --tags --max-count=1) " )
29
29
30
30
if [[ -z " $latest_tag " ]]; then
31
- # There are no existing release tags
32
- echo -e " No tags found (yet) - Continue to create and push your first tag"
33
- latest_tag=" [unknown]"
31
+ # There are no existing release tags
32
+ echo -e " No tags found (yet) - Continue to create and push your first tag"
33
+ latest_tag=" [unknown]"
34
34
fi
35
35
36
36
# Display the latest release tag
@@ -42,11 +42,11 @@ read -r -p 'Enter a new release tag (vX.X.X format): ' new_tag
42
42
# Validate the new release tag
43
43
tag_regex=' v[0-9]+\.[0-9]+\.[0-9]+$'
44
44
if echo " $new_tag " | grep -q -E " $tag_regex " ; then
45
- echo -e " Tag: ${BLUE} $new_tag ${OFF} is valid"
45
+ echo -e " Tag: ${BLUE} $new_tag ${OFF} is valid"
46
46
else
47
- # Release tag is not `vX.X.X` format
48
- echo -e " Tag: ${BLUE} $new_tag ${OFF} is ${RED} not valid${OFF} (must be in vX.X.X format)"
49
- exit 1
47
+ # Release tag is not `vX.X.X` format
48
+ echo -e " Tag: ${BLUE} $new_tag ${OFF} is ${RED} not valid${OFF} (must be in vX.X.X format)"
49
+ exit 1
50
50
fi
51
51
52
52
# Tag the new release
You can’t perform that action at this time.
0 commit comments