Compare commits

..

1 Commits

Author SHA1 Message Date
decentral1se
8020de2e70
Add --bump release logic
All checks were successful
continuous-integration/drone/pr Build is passing
Closes https://git.autonomic.zone/coop-cloud/abra/issues/173.
2021-06-08 12:31:53 +02:00

3
abra
View File

@ -2097,7 +2097,6 @@ sub_recipe_release() {
if [ "${#RECIPE_VERSIONS[@]}" -gt 0 ]; then
latest_version="${RECIPE_VERSIONS[-1]}"
debug "Detected '${RECIPE_VERSIONS[@]}' as the latest version"
if [ "$force" = "true" ]; then
latest_version_message=$(git tag -l "$latest_version" --format='%(contents)')
else
@ -2110,7 +2109,7 @@ sub_recipe_release() {
latest_version_message="Initial tagged release"
info "No previous releases found"
if [ "$bump" = "true" ]; then
exit "--bump can't do its work when there are no existing release versions"
error "--bump can't do its work when there are no existing release versions"
fi
fi