chore: update GitHub Actions #42
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: Changelog | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
update-changelog: | |
name: Update changelog | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: master | |
- uses: Bpazy/setup-git-chglog@v1 | |
- name: git-chglog version | |
run: git chglog --version | |
- name: Generate changelog | |
run: git chglog | tee CHANGELOG.md | |
- name: Commit | |
run: | | |
git config user.email "" | |
git config user.name "GitHub Action Bot" | |
git diff -- CHANGELOG.md | |
git add CHANGELOG.md | |
git commit -m "chore: update CHANGELOG [skip ci]" && git push origin master || true |