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

A GitHub Action to extract release notes from a "Keep a Changelog" formatted changelog file

License

NotificationsYou must be signed in to change notification settings

ffurrer2/extract-release-notes

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

Repository files navigation

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.

About

A GitHub Action to extract release notes from a "Keep a Changelog" formatted changelog file

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp