Improved docstrings and reformatted the code #8
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 changelog | |
on: | |
push: | |
branches: | |
- main # Set a branch to monitor for changes | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Generate changelog | |
uses: heinrichreimer/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit and push if it changed | |
run: |- | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "Changelog Bot" | |
git diff --quiet || (git add CHANGELOG.md && git commit -m "Update CHANGELOG.md" && git push) |