Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extract Release Notes

Actions
Extract release notes from a Keep a Changelog changelog file
v2.3.0
Latest
Star (65)

Extract Release Notes

CIMIT LicenseGitHub Release

This GitHub Action extracts release notes from aKeep a Changelog formatted changelog file.

Usage

Prerequisites

Inputs

InputDescription
changelog_file(optional)The input path of the changelog file. Default:CHANGELOG.md
release_notes_file(optional)The output path of the (optional) release notes file.

Outputs

OutputDescription
release_notesThe escaped release notes.

Example workflow - create a release with release notes

On everypush to a tag matching the pattern*.*.*, extract the release notes from theCHANGELOG.md file andcreate a release:

name:Create Releaseon:push:tags:      -'*.*.*'jobs:release:name:Create releaseruns-on:ubuntu-latestpermissions:contents:writesteps:      -name:Checkoutuses:actions/checkout@v4      -name:Extract release notesid:extract-release-notesuses:ffurrer2/extract-release-notes@v2      -name:Create releaseenv:GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}run:gh release create ${{ github.ref_name }} --notes '${{ steps.extract-release-notes.outputs.release_notes }}'

This code will extract the content between the second and third H2 header from theCHANGELOG.md file, store this content in the output variablerelease_notes and create a release using thegh release create command.

Examples

Use a dedicated changelog file

jobs:release:runs-on:ubuntu-lateststeps:      -name:Checkoutuses:actions/checkout@v4      -name:Extract release notesid:extract-release-notesuses:ffurrer2/extract-release-notes@v2with:changelog_file:MY_CHANGELOG.md

Create a release notes file

jobs:release:runs-on:ubuntu-lateststeps:      -name:Checkoutuses:actions/checkout@v4      -name:Extract release notesuses:ffurrer2/extract-release-notes@v2with:release_notes_file:RELEASE_NOTES.md

Extract prerelease notes

To extract the content between the first (## [Unreleased]) and second H2 header, set theprerelease parameter totrue.

jobs:release:runs-on:ubuntu-lateststeps:      -name:Checkoutuses:actions/checkout@v4      -name:Extract release notesuses:ffurrer2/extract-release-notes@v2with:prerelease:true

License

This project is licensed under theMIT License.

Extract Release Notes is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Extract release notes from a Keep a Changelog changelog file
v2.3.0
Latest

Extract Release Notes is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.


[8]ページ先頭

©2009-2025 Movatter.jp