

GitHub - stefanzweifel/changelog-updater-action: A GitHub Action to automaticall...
source link: https://github.com/stefanzweifel/changelog-updater-action
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

changelog-updater Action.
A GitHub Action to automatically update a "Keep a Changelog" CHANGELOG with the latest release notes.
The Action …
- automatically updates the
Unreleased
-heading to point to the compare view between the latest version andHEAD
. - adds a new second level heading for the new release.
- pastes your release notes in the appropriate place in
CHANGELOG.md
.
Don't want to use GitHub Actions? Checkout the changelog-updater CLI that powers this Action.
Usage
The Action is best used in a Workflow that listens to the release
-event and the type released
. This way, the name and body of your release will be added to the CHANGELOG.
The following is an example Workflow ready to be used.
The Workflow checks out the default main
-branch of your repository, updates the ./CHANGELOG.md
-file with the name and the contents of the just released release and commits the changes back to your repository using git-auto-commit.
# .github/workflows/update-changelog.yaml name: "Update Changelog" on: release: types: [released] jobs: update: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: ref: main - name: Update Changelog uses: stefanzweifel/changelog-updater-action@v1 with: latest-version: ${{ github.event.release.name }} release-notes: ${{ github.event.release.body }} - name: Commit updated CHANGELOG uses: stefanzweifel/git-auto-commit-action@v4 with: branch: main commit_message: Update CHANGELOG file_pattern: CHANGELOG.md
To generate the release notes automatically for you, I can recommend using the release-drafter Action.
Inputs
Checkout action.yml
for a full list of supported inputs.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
We also provide major version tags to make it easier to always use the latest release of a major version. For example you can use stefanzweifel/changelog-updater-action@v1
to always use the latest release of the current major version.
(More information about this here.)
Credits
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommend
-
176
Laravel Stats Get insights about your Laravel or Lumen Project.
-
57
GitHub Actions for PHP Developers (HCL) June 13th, 2019 • 11 min read
-
128
README.md Atmosphere-Updater Update Atmosphere cfw from within your switch!
-
13
changelog-updater A PHP CLI to update a CHANGELOG following the "Keep a Changelog" format with the latest release notes. Want to automate the process of updating your Changelog with Gi...
-
8
Oh Dear Request Run Action An Action to trigger a new mixed-content or broken-links run in Oh Dear. This Action provides an abstraction to trigger new runs in Oh Dear
-
5
Render Markdown AST back to Markdown. Render a league/commonmark AST back to Markdown. Note: Markdown knows alternate syntaxes for the same elements (heading, emphasis, unordered lists, horizontal rules). Ther...
-
10
Parse and Render ==marked text== with league/commonmark A league/commonmark extension to turn highlighted text into
-
11
Keep track of outgoing emails and associate sent emails with Eloquent models This package helps you to keep track of outgoing emails in your Laravel application. In addition, you can associate Models to the sent out emails. He...
-
4
Introducing the changelog-updater Action November 13, 2021 • 10 min read I've recently pub...
-
3
How the "changelog-updater" Action works November 13, 2021 • 3 min read I've recently publ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK