From 43088dd8e13c8b8d6a5b4acdd1f6492cd2209a5d Mon Sep 17 00:00:00 2001 From: Marcin Jasion Date: Wed, 11 Jan 2023 16:33:06 +0100 Subject: [PATCH 1/2] Generate relese notes with helm-release Reading helm-char releaser I found it uses `cr` tool, which is a Go binary to making releases. It can be configured by configfile, and one of the parametes is exactly same as `gh release create --generate-release-notes` :-) --- .github/chart-releaser-config.yaml | 3 +++ .github/workflows/helm.yaml | 1 + 2 files changed, 4 insertions(+) create mode 100644 .github/chart-releaser-config.yaml diff --git a/.github/chart-releaser-config.yaml b/.github/chart-releaser-config.yaml new file mode 100644 index 00000000..ae891ad1 --- /dev/null +++ b/.github/chart-releaser-config.yaml @@ -0,0 +1,3 @@ +# https://github.com/helm/chart-releaser#config-file + +generate-release-notes: true diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml index 3c370fe3..113fb1cd 100644 --- a/.github/workflows/helm.yaml +++ b/.github/workflows/helm.yaml @@ -72,4 +72,5 @@ jobs: uses: helm/chart-releaser-action@v1.5.0 env: CR_SKIP_EXISTING: "false" + config: .github/chart-releaser-config.yaml CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From 528b08658ca19aa90a70707bcc3f184c54678b45 Mon Sep 17 00:00:00 2001 From: Marcin Jasion <5058132+mjasion@users.noreply.github.com> Date: Wed, 11 Jan 2023 16:42:10 +0100 Subject: [PATCH 2/2] Update .github/workflows/helm.yaml Co-authored-by: Jesper Svendsen <99078145+jesper7@users.noreply.github.com> --- .github/workflows/helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml index 113fb1cd..01982cde 100644 --- a/.github/workflows/helm.yaml +++ b/.github/workflows/helm.yaml @@ -71,6 +71,6 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.5.0 env: - CR_SKIP_EXISTING: "false" config: .github/chart-releaser-config.yaml + CR_SKIP_EXISTING: "false" CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"