Skip to content

Commit 64d7bdf

Browse files
committed
fix: Remove changelog commit from release workflow
The release workflow was committing CHANGELOG.md updates to master before running GoReleaser, which moved HEAD past the tagged commit and caused GoReleaser to fail with a tag mismatch error. GoReleaser still uses git-cliff for release notes via the changelog.use config in .goreleaser.yml. CHANGELOG.md should be updated before tagging as a pre-release step.
1 parent 1f50f49 commit 64d7bdf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ jobs:
4242
- name: Install git-cliff (for changelog generation)
4343
uses: kenji-miyake/setup-git-cliff@v2
4444

45-
- name: Update CHANGELOG.md
46-
run: |
47-
git config user.name "github-actions[bot]"
48-
git config user.email "github-actions[bot]@users.noreply.github.com"
49-
git-cliff --tag ${{ github.ref_name }} --output CHANGELOG.md
50-
git add CHANGELOG.md
51-
git commit -m "docs: update changelog for ${{ github.ref_name }}" || echo "No changelog changes"
52-
git push origin HEAD:${{ github.event.repository.default_branch }} || echo "Push skipped"
53-
5445
- name: Run GoReleaser
5546
uses: goreleaser/goreleaser-action@v6
5647
with:

0 commit comments

Comments
 (0)