Skip to content

Commit

Permalink
fix: Another go at git-cliff integration
Browse files Browse the repository at this point in the history
  • Loading branch information
yanliu38 committed Jan 25, 2025
1 parent 3bdb0c1 commit 8ba9a23
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,19 @@ jobs:
id: get_version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Install git-cliff
- name: Generate changelog
id: changelog
uses: orhun/git-cliff-action@v2
with:
config: cliff.toml
args: --current --strip header
output: CHANGES.md

- name: Generate changelog
id: changelog
- name: Read changelog
id: read_changelog
run: |
echo "changelog<<EOF" >> $GITHUB_OUTPUT
git-cliff --current --strip header >> $GITHUB_OUTPUT
cat CHANGES.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Release
Expand All @@ -43,7 +45,7 @@ jobs:
release_name: Release ${{ github.ref_name }}
body: |
## Changelog
${{ steps.changelog.outputs.changelog }}
${{ steps.read_changelog.outputs.changelog }}
draft: false
prerelease: false

Expand Down

0 comments on commit 8ba9a23

Please sign in to comment.