Autoupdate Changelog.md #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |