When preparing a software release, a common task is to parse the changelog file, and extract the latest changes section from it. For certain purposes, Markdown format is acceptable, but in some cases a text format is also useful.
ChangelogAutomation.action is a GitHub action that uses ChangelogAutomation to parse the changelog and provide the output to reuse in a GitHub Actions context.
Add the following to your .github/workflows/<workflow>.yml:
jobs:
<job>:
steps:
- name: Test Markdown
uses: ForNeVeR/ChangelogAutomation.action@v1
with:
input: ./smth/CHANGELOG.md
output: ./changelog-section.mdThis will read the latest version section of your CHANGELOG.md file and save it to the changelog-section.md file.
Available input parameters are:
input(./CHANGELOG.mdby default): the input changelog fileformat(Markdownby default): output file format; eitherMarkdownorPlainTextoutput: the output file where the section content will be written
Node.js v20.0+ and NPM 10.0+ are required to work on this project.
To download the dependencies, run the following shell command:
$ npm installTo build the project distribution (which is then pushed to the repository, as recommended by GitHub), run the following shell command:
$ npm run build- Changelog
- Maintainership
- License (MIT)
- see also the ChangelogAutomation documentation