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
}
if upgradeReleaseNotes != "" && chosenUpgrade != "" {
fmt.Print(upgradeReleaseNotes)
} else {
if upgradeReleaseNotes == "" {
upgradeWarnMessages = append(
upgradeWarnMessages,
fmt.Sprintf("no release notes available for %s", chosenUpgrade),

View File

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