Skip to content

Commit

Permalink
ci: Use cog to generate changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleBooth authored Aug 20, 2024
1 parent a41062e commit 7bebb08
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ jobs:
lfs: true
fetch-depth: 0
ref: v${{ needs.release.outputs.current_version }}
- name: Generate a changelog
uses: PurpleBooth/changelog-action@ceaac4a8990352de3b83099444e2909738371425 # v0.3.3
with:
config: cliff.toml
args: --verbose v${{ needs.release.outputs.previous_version }}..v${{ needs.release.outputs.current_version }}
output: CHANGELOG.md
- uses: cargo-bins/cargo-binstall@main
name: Install cargo binstall
- shell: bash
run: cargo binstall --no-confirm --locked cocogitto
- run: cog changelog --at "$TAG_V" > CHANGELOG.md
shell: bash
env:
TAG_V: v$${{ needs.release.outputs.current_version }}
- id: create_release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
with:
Expand Down

0 comments on commit 7bebb08

Please sign in to comment.