Skip to content

Autoupdate Changelog.md #16

Autoupdate Changelog.md

Autoupdate Changelog.md #16

name: 'Autoupdate Changelog.md'
on:
workflow_dispatch:
push:
tags:
- v*
permissions:
contents: write
jobs:
update-changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: python3 -m pip install natsort
- name: Generate a new Changelog
run: |
git checkout master
python3 .github/tools/gitchanges.py --input Changelog.md
- name: Commit the new Changelog
run: |
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
git add --force Changelog.md
git commit -m "Updated the Changelog (${{ github.ref_name || 'unknown ref'}})"
git push