This GitHub action creates release notes from a release summary (usually a Pull Request body) formatted like this template. The output can be used for packages published to e.g. NuGet.
Create a workflow .yml
file in your .github/workflows
directory. An example workflow is available below.
For more information, reference the GitHub Help Documentation for Creating a workflow file
body
(required): The body of the release summary. Recommended format PULL_REQUEST_TEMPLATE.md.version
(required): The version released.changelog-url
: If provided, a link to this URL will be appended to the bottom of the release notes.
markdown
: Release notes formatted as Markdownplaintext
: Release notes formatted as plain text
on:
push:
branches:
- '**'
pull_request:
types: [closed]
name: GitHub action workflow name
jobs:
context:
name: Job name
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Establish context
id: context
uses: dolittle/establish-context-action@v2
- name: Increment version
id: increment-version
uses: dolittle/increment-version-action@v2
with:
version: ${{ steps.context.outputs.current-version }}
release-type: ${{ steps.context.outputs.release-type }}
- name: Create release notes
uses: dolittle/create-release-notes-action@v1
with:
body: ${{ steps.context.outputs.pr-body }}
version: ${{ steps.increment-version.outputs.next-version }}
changelog-url: "https://github.com/dolittle/create-release-notes-action/blob/master/CHANGELOG.md"
We're always open for contributions and bug fixes!
node <= 12 yarn git