This action generates release notes based on the repository's commit messages according to the Conventional Commits specification. It assumes Python, pip and Commitizen are already setup, see the setup Python action and setup Commitizen action for ready to use actions to do this.
| Input | Description | Default |
|---|---|---|
file_name |
The name of the file to write the release notes to. | 'RELEASE_NOTES.md' |
version |
The version to generate release notes for. | ${{ github.ref_name }} |
name: Generate release notes
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
generate_release_notes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup Python
uses: dfinity/ci-tools/actions/setup-python@main
- name: Setup Commitizen
uses: dfinity/ci-tools/actions/setup-commitizen@main
- name: Generate release notes
uses: dfinity/ci-tools/actions/generate-release-notes@main
with:
file_name: 'RELEASE.md'