We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ca78d5 commit aaa02b4Copy full SHA for aaa02b4
scripts/get-git-tag-name.sh
@@ -53,11 +53,17 @@ get_git_tag_name() {
53
# empty.
54
if [ "$git_tag_include_status" = true ] && [ -n "$app_status" ]; then
55
tag_name+="-${app_status}"
56
- fi
57
58
- # Append app_pre_release if it is not empty
59
- if [ -n "$app_pre_release" ]; then
60
- tag_name+=".${app_pre_release}"
+ # Append app_pre_release if it is not empty.
+ if [ -n "$app_pre_release" ]; then
+ tag_name+=".${app_pre_release}"
+ 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
65
+ tag_name+="-${app_pre_release}"
66
67
fi
68
69
echo "$tag_name"
0 commit comments