Skip to content

olofvndrhr/releasenote-gen

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

releasenote-gen

releasenote generator action for the keepachangelog format.

also works with: auto-changelog

inputs

input description default
version version to generate the release notes for latest
changelog the input changelog file CHANGELOG.md
releasenotes the output release notes file RELEASENOTES.md

outputs

output description usage
releasenotes the release notes as a string for further step usage steps.<step_id>.outputs.releasenotes

how to use

name: generate release notes

on:
  push:
    tags:
      - "v*.*.*"

jobs:
  get-release-notes:
    runs-on: ubuntu-latest
    steps:
      - name: checkout code
        uses: actions/checkout@v3

      - name: get release notes
        id: get-releasenotes
        uses: olofvndrhr/releasenote-gen@v1
        with:
          version: latest # default
          changelog: CHANGELOG.md # default
          releasenotes: RELEASENOTES.md # default

      - name: get release notes for ref
        uses: olofvndrhr/releasenote-gen@v1
        with:
          version: ${{ github.ref_name }} # name of the pushed tag

      # use the generated release notes string for further steps
      - name: print release notes
        run: echo "${{ steps.get-releasenotes.outputs.releasenotes }}"

example with auto-changelog

name: update changelog and generate release notes

on:
  push:
    tags:
      - "v*.*.*"

jobs:
  changelog-releasenotes:
    runs-on: ubuntu-latest
    steps:
      - name: checkout code
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
          ref: master

      - name: install auto-changelog
        run: npm install -g auto-changelog

      - name: generate changelog
        run: >-
          auto-changelog -t keepachangelog
          --commit-limit 50 --backfill-limit 50
          --ignore-commit-pattern '[Bb]ump version|[Uu]pdate changelog|[Mm]erge pull request'      

      - name: get release notes
        uses: olofvndrhr/releasenote-gen@v1
        with:
          version: latest # default
          changelog: CHANGELOG.md # default
          releasenotes: RELEASENOTES.md # default

      # don't forget to include RELEASENOTES.md in your .gitignore
      - name: commit changes
        uses: EndBug/add-and-commit@v9
        with:
          message: "[bot] update changelog"
          author_name: xxxx
          author_email: xxxx

About

bash releasenote generator for keepachangelog format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages