Skip to content

Commit

Permalink
fixup! makefile: add command release-tag for generating a release git…
Browse files Browse the repository at this point in the history
… tag
  • Loading branch information
ffranr committed Jan 29, 2024
1 parent 1ca78d5 commit aaa02b4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions scripts/get-git-tag-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,17 @@ get_git_tag_name() {
# empty.
if [ "$git_tag_include_status" = true ] && [ -n "$app_status" ]; then
tag_name+="-${app_status}"
fi

# Append app_pre_release if it is not empty
if [ -n "$app_pre_release" ]; then
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
else
# If the app_status field is not to be included, then append
# app_pre_release using a dash prefix.
if [ -n "$app_pre_release" ]; then
tag_name+="-${app_pre_release}"
fi
fi

echo "$tag_name"
Expand Down

0 comments on commit aaa02b4

Please sign in to comment.