Choose latest commit message for new tags

Closes coop-cloud/abra#144.
This commit is contained in:
decentral1se 2021-04-17 23:54:06 +02:00
parent 31fdbccfad
commit c19c4db897
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

7
abra
View File

@ -1943,8 +1943,13 @@ sub_recipe_release() {
if [ "${#RECIPE_VERSIONS[@]}" -gt 0 ]; then
latest_version="${RECIPE_VERSIONS[-1]}"
latest_version_message=$(git tag -l "$latest_version" --format='%(contents)')
if [ "$force" = "true" ]; then
latest_version_message=$(git tag -l "$latest_version" --format='%(contents)')
else
latest_version_message=$(git show -s --format=%s)
fi
info "Latest available version: '$latest_version'"
info "Latest verion message: '$latest_version_message'"
else
latest_version=""
latest_version_message="Initial tagged release"