Skip to content

Commit aaa02b4

Browse files
committed
fixup! makefile: add command release-tag for generating a release git tag
1 parent 1ca78d5 commit aaa02b4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/get-git-tag-name.sh

+10-4
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,17 @@ get_git_tag_name() {
5353
# empty.
5454
if [ "$git_tag_include_status" = true ] && [ -n "$app_status" ]; then
5555
tag_name+="-${app_status}"
56-
fi
5756

58-
# Append app_pre_release if it is not empty
59-
if [ -n "$app_pre_release" ]; then
60-
tag_name+=".${app_pre_release}"
57+
# Append app_pre_release if it is not empty.
58+
if [ -n "$app_pre_release" ]; then
59+
tag_name+=".${app_pre_release}"
60+
fi
61+
else
62+
# If the app_status field is not to be included, then append
63+
# app_pre_release using a dash prefix.
64+
if [ -n "$app_pre_release" ]; then
65+
tag_name+="-${app_pre_release}"
66+
fi
6167
fi
6268

6369
echo "$tag_name"

0 commit comments

Comments
 (0)