Generate release notes

August 6, 2025 ยท View on GitHub

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.

Action inputs

InputDescriptionDefault
file_nameThe name of the file to write the release notes to.'RELEASE_NOTES.md'
versionThe version to generate release notes for.${{ github.ref_name }}

Example usage

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'