Skip to content

Commit

Permalink
fix: fix workflow changelog generation crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TgZ39 committed Feb 9, 2025
1 parent d91f8e8 commit d969a00
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
release:
types: [created, published]
types: [created]
permissions:
contents: write
env:
Expand All @@ -24,6 +24,21 @@ jobs:
env:
OUTPUT: CHANGELOG.md

- name: Generate CHANGES.md
uses: orhun/git-cliff-action@v2
id: git-cliff-changes
with:
config: 'cliff.toml'
args: '--verbose --latest --strip header'
env:
OUTPUT: CHANGES.md

- name: Upload CHANGES.md
uses: actions/upload-artifact@v4
with:
name: 'changes-md'
path: 'CHANGES.md'

- name: Commit CHANGELOG.md
run: |
git checkout master
Expand Down Expand Up @@ -69,14 +84,10 @@ jobs:
args: '--locked --release'
strip: true

- name: Generate CHANGES.md
uses: orhun/git-cliff-action@v2
id: git-cliff-changes
- name: Download CHANGES.md
uses: actions/download-artifact@v4
with:
config: 'cliff.toml'
args: '--verbose --latest --strip header'
env:
OUTPUT: CHANGES.md
name: 'changes-md'

- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
Expand Down

0 comments on commit d969a00

Please sign in to comment.