Skip to content

Commit e3e9ba0

Browse files
committed
Improve check tag script
1 parent f6dd8e4 commit e3e9ba0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/scripts/check-tag-format.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ if [ $is_pre_release = false ]; then
1212
echo "$current_tag" | grep -E "[0-9]*\.[0-9]*\.[0-9]*$"
1313
if [ $? != 0 ]; then
1414
echo "Error: Your tag: $current_tag is wrongly formatted."
15-
echo "Please refer to the contributing guide for help."
15+
echo 'Please refer to the contributing guide for help.'
1616
exit 1
1717
fi
1818
exit 0
19-
fi
20-
21-
if [ $is_pre_release = true ]; then
19+
elif [ $is_pre_release = true ]; then
2220
# Works with the format vX.X.X-xxx-beta.X
2321
# none or multiple -xxx are valid
2422
#
@@ -30,8 +28,10 @@ if [ $is_pre_release = true ]; then
3028

3129
if [ $? != 0 ]; then
3230
echo "Error: Your beta tag: $current_tag is wrongly formatted."
33-
echo "Please refer to the contributing guide for help."
31+
echo 'Please refer to the contributing guide for help.'
3432
exit 1
3533
fi
3634
exit 0
3735
fi
36+
37+
exit 0

0 commit comments

Comments
 (0)