Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

GitHub action that will generate a release note, add it to release notes file in documentation repository and create a PR with changes in documentation

License

Notifications You must be signed in to change notification settings

indykite/generate-release-notes

Repository files navigation

Generate Release notes

Automated generation of release notes for GitHub repositories. Release note is generated from the CHANGELOG.md file after a release is published. Then creates a pull request in the documentation repository with the generated release note.

Set up

  1. Create a .github/workflows/generate-release-notes.yaml file with these contents:

    name: Generate release notes
    on:
      release:
        types:
          - published
    
    jobs:
      generate-release-notes:
        runs-on: ubuntu-latest
        steps:
          - uses: indykite/generate-release-notes@master
            with:
              docs-repo: owner/docs-repo
  2. Merge the above action to your product repository. Make sure you use the release-please-action or similar action to create releases. This action will start generating release notes for the upcoming releases and creating PRs with the release notes in the documentation repository.

Configuration

input description
token A GitHub secret token, used for checkout and creating PRs. Default secrets.GITHUB_TOKEN
docs-repo The repository (in format owner/repo) where the release notes will be pushed
base-branch The branch where the release notes will be pushed. Default master
release-notes-path Path to the release notes file. Parent folder must exist. Default releases/release-notes.md
allow-automerge Allows the action to merge the PRs automatically. Default false

How generate-release-notes works

After a release is published, the action will generate the release notes from the CHANGELOG.md and create a PR in the documentation repository. The PR will contain the generated release note prepended in the release-notes-path file. If the file doesn't exist, the action will create the file. If the file is empty the action will write the release note with a page headline.

About

GitHub action that will generate a release note, add it to release notes file in documentation repository and create a PR with changes in documentation

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages