fix: show release notes once
All checks were successful
continuous-integration/drone/push Build is passing

See #543
This commit is contained in:
decentral1se 2025-04-22 07:41:02 +02:00 committed by decentral1se
parent d081bbaefa
commit de009921a2
2 changed files with 4 additions and 6 deletions

View File

@ -213,9 +213,7 @@ beforehand. See "abra app backup" for more.`,
return return
} }
if upgradeReleaseNotes != "" && chosenUpgrade != "" { if upgradeReleaseNotes == "" {
fmt.Print(upgradeReleaseNotes)
} else {
upgradeWarnMessages = append( upgradeWarnMessages = append(
upgradeWarnMessages, upgradeWarnMessages,
fmt.Sprintf("no release notes available for %s", chosenUpgrade), fmt.Sprintf("no release notes available for %s", chosenUpgrade),

View File

@ -46,7 +46,7 @@ func DeployOverview(
app appPkg.App, app appPkg.App,
deployedVersion string, deployedVersion string,
toDeployVersion string, toDeployVersion string,
info string, releaseNotes string,
warnMessages []string, warnMessages []string,
) error { ) error {
deployConfig := "compose.yml" deployConfig := "compose.yml"
@ -85,8 +85,8 @@ func DeployOverview(
fmt.Println(overview) fmt.Println(overview)
if info != "" { if releaseNotes != "" {
fmt.Println(info) fmt.Print(releaseNotes)
} }
for _, msg := range warnMessages { for _, msg := range warnMessages {