Skip to content

Commit

Permalink
ci: fix release notes generation (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc authored Jan 24, 2024
1 parent 33b0ebd commit 4759f61
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ jobs:
uses: orhun/git-cliff-action@v2
with:
config: cliff.toml
# If the release is a prerelease, use unreleased commits
# otherwise use commits belonging to the last release
args: -vv ${{ fromJson(needs.meta.outputs.prerelease) && '-u' || '-l' }}
# If the release is triggered by a tag, process commits starting
# from the latest tag, otherwise tag will be create later, so use
# unreleased commits
args: -vv ${{ github.event_name == 'push' && '-l' || '-u' }}
- name: Preview Release Notes
if: ${{ !fromJson(needs.meta.outputs.publish) }}
run: |
Expand Down

0 comments on commit 4759f61

Please sign in to comment.