Fix bump releases
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Closes https://git.autonomic.zone/coop-cloud/abra/issues/180.
This commit is contained in:
parent
fa54705f79
commit
2ca7884bbe
6
abra
6
abra
|
@ -2218,7 +2218,7 @@ sub_recipe_release() {
|
|||
|
||||
success "All compose files updated; new version is $new_version"
|
||||
|
||||
if [ "$abra___no_prompt" = "false" ]; then
|
||||
if [ "$abra___no_prompt" = "false" ] && [ "$bump" = "false" ]; then
|
||||
read -rp "Commit your changes to git? [y/N]? " choice
|
||||
|
||||
if [ "${choice,,}" != "y" ]; then
|
||||
|
@ -2226,7 +2226,7 @@ sub_recipe_release() {
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ "$abra___no_prompt" = "false" ]; then
|
||||
if [ "$abra___no_prompt" = "false" ] && [ "$bump" = "false" ]; then
|
||||
git commit -avem "Version $new_version; sync labels" || exit
|
||||
else
|
||||
git commit -am "Version $new_version; sync labels" || true
|
||||
|
@ -2255,7 +2255,7 @@ sub_recipe_release() {
|
|||
if [ "$abra___no_prompt" = "false" ]; then
|
||||
read -rp "Git push this new tag? [y/N]? " choice
|
||||
|
||||
if [ "${choice,,}" != "y" ]; then
|
||||
if [ "${choice,,}" = "y" ]; then
|
||||
git push && git push --tags
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue