Skip to content

Commit c719622

Browse files
committed
fix(ci): pre-generate changelog with git-cliff, verify install, disable goreleaser git-cliff integration
1 parent f11d25d commit c719622

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
4444
sudo install --mode=755 \
4545
"$(find /tmp -maxdepth 2 -name git-cliff -type f)" \
4646
/usr/local/bin/git-cliff
47+
git-cliff --version
48+
49+
- name: Generate changelog
50+
run: git-cliff --latest --output /tmp/release-notes.md
4751

4852
- name: Install syft
4953
uses: anchore/sbom-action/download-syft@v0
@@ -61,7 +65,7 @@ jobs:
6165
with:
6266
distribution: goreleaser
6367
version: "~> v2"
64-
args: release --clean
68+
args: release --clean --release-notes /tmp/release-notes.md
6569
env:
6670
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6771

.goreleaser.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,4 @@ checksum:
6161
algorithm: sha256
6262

6363
changelog:
64-
use: git-cliff
65-
abbrev: -1
64+
disable: true

0 commit comments

Comments
 (0)