Skip to content

Update Changelog

Update Changelog #4

name: "Update Changelog"
on:
release:
types: [released]
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: master
token: ${{ secrets.GH_TOKEN }} # Use the secret you added for authentication
- 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@v5
with:
branch: master
commit_message: "Update Changelog for version ${{ github.event.release.tag_name }}"
file_pattern: CHANGELOG.md
token: ${{ secrets.GH_TOKEN }} # Use the secret here for pushing changes