File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,25 @@ jobs:
1111 steps :
1212 - name : Checkout
1313 uses : actions/checkout@v2
14- with :
15- fetch-depth : 0
14+ - name : Unshallow
15+ run : git fetch --prune --unshallow
1616 - name : Set up Go
1717 uses : actions/setup-go@v2
1818 with :
1919 go-version : 1.14
20+ # Similar as to https://github.com/fluxcd/toolkit/blob/master/.github/workflows/release.yaml#L20-L27
21+ - name : Download release notes utility
22+ env :
23+ GH_REL_URL : https://github.com/buchanae/github-release-notes/releases/download/0.2.0/github-release-notes-linux-amd64-0.2.0.tar.gz
24+ run : cd /tmp && curl -sSL ${GH_REL_URL} | tar xz && sudo mv github-release-notes /usr/local/bin/
25+ - name : Generate release notes
26+ run : |
27+ echo 'CHANGELOG' > /tmp/release.txt
28+ github-release-notes -org fluxcd -repo go-git-providers -since-latest-release >> /tmp/release.txt
2029 - name : Run GoReleaser
2130 uses : goreleaser/goreleaser-action@v2
2231 with :
2332 version : latest
24- args : release --rm-dist
33+ args : release --release-notes=/tmp/release.txt -- rm-dist
2534 env :
2635 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments