Skip to content

Commit

Permalink
fix: One more attempt with git-cliff
Browse files Browse the repository at this point in the history
  • Loading branch information
yanliu38 committed Jan 25, 2025
1 parent 8ba9a23 commit 2d4caca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@ jobs:
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

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

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

Expand Down

0 comments on commit 2d4caca

Please sign in to comment.