feat: add changelog page #3
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: Generate and Commit Changelog | |
on: | |
push: | |
branches: | |
# FIXME: remove | |
- changelog | |
- master | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: 'Generate PR changelog' | |
uses: heinrichreimer/action-github-changelog-generator@v2.4 | |
with: | |
issues: false | |
output: CHANGELOG.md | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit and push if it changed | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add CHANGELOG.md | |
git commit -m "Update Changelog [skip ci]" || echo "No changes to commit" | |
git push origin ${{ github.ref }} |