A GitHub action to extract release notes for a specific version from changelog generated by standard-version. For changelogs based on Conventional Commits.
-
- Optional
- Path of the changelog file (relative to root). Default is
./CHANGELOG.md
.
-
- Required
- Name of the version in the changelog. (e.g. v1.2.1-beta.3).
- You can also provide the tag using
${{ github.ref }}
, if the workflow trigger is on push of tags.
-
- The release notes for a version.
# Get the release notes and set a convenient 'id' for accessing later
uses: yashanand1910/standard-release-notes@v1.2.1
id: get_release_notes
with:
changelog_path: ./CHANGELOG.md # Optional
version: ${{ github.ref }} # Required
...
# An example of how to access the output
body: ${{ steps.get_release_notes.outputs.release_notes }}