Skip to content

Commit

Permalink
cliff: reverse commits + pass notes as file
Browse files Browse the repository at this point in the history
  • Loading branch information
rarescosma committed Oct 7, 2024
1 parent c8c6f6d commit e08cec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ jobs:
args: --latest --strip all
env:
REPO_PREFIX: ${{ github.server_url }}/${{ github.repository }}/
OUTPUT: release-notes.md
- name: Create GitHub release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create $VERSION --draft --verify-tag --title $VERSION --notes "${{ steps.git-cliff.outputs.content }}"
run: gh release create $VERSION --draft --verify-tag --title $VERSION -F release-notes.md
- name: Push to CI branch
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body = """
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
{% for commit in commits | reverse %}
- {{ commit.message | split(pat="\n") | first | trim }} [#{{ commit.id | truncate(length=7, end="") }}]({{repo_prefix}}commit/{{ commit.id }})\
{% endfor %}
{% endfor %}\n
Expand Down

0 comments on commit e08cec8

Please sign in to comment.