Skip to content

Commit

Permalink
Escaping the release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rshade committed Feb 7, 2025
1 parent 7f4c39a commit adbdb6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,11 @@ jobs:
cache: true
cache-dependency-path: go.sum

- name: Generate Changelog
run: |
go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
git-chglog --output CHANGELOG.md
echo "RELEASE_NOTE=$(cat CHANGELOG.md)" >> $GITHUB_ENV
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NOTE: ${{ env.RELEASE_NOTE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ release:
See [CHANGELOG.md](CHANGELOG.md) for all changes.
footer: |
**Full Changelog**: https://github.com/owner/repo/blob/main/CHANGELOG.md
# Use note instead of notes_file
note: '{{ .Env.RELEASE_NOTE }}' # Will be populated from environment variable
snapshot:
name_template: "{{ incpatch .Version }}-next"
Expand Down

0 comments on commit adbdb6b

Please sign in to comment.