File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
20
20
"bytes"
21
21
"fmt"
22
22
"os"
23
+ "strings"
23
24
24
25
semver "github.com/blang/semver/v4"
25
26
"github.com/helm/helm/pkg/chartutil"
@@ -107,10 +108,10 @@ func updateChartReleaseNotes(releasesNotes []string) {
107
108
utils .Info ("HELM Updating the Chart Release notes" )
108
109
chart , err := chartutil .LoadChartfile (HelmChartPath )
109
110
utils .CheckIfError (err , "HELM Could not Load Chart to update release notes %s" , HelmChartPath )
110
- var releaseNoteString string
111
111
for i := range releasesNotes {
112
- releaseNoteString = fmt .Sprintf ("%s - \" %s \" \n " , releaseNoteString , releasesNotes [i ])
112
+ releasesNotes [ i ] = fmt .Sprintf ("- %q" , releasesNotes [i ])
113
113
}
114
+ releaseNoteString := strings .Join (releasesNotes , "\n " )
114
115
utils .Info ("HELM Release note string %s" , releaseNoteString )
115
116
chart .Annotations ["artifacthub.io/changes" ] = releaseNoteString
116
117
err = chartutil .SaveChartfile (HelmChartPath , chart )
You can’t perform that action at this time.
0 commit comments