support async handlers inference #2
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: Update Changelog | |
on: | |
# release: | |
# types: [published] | |
push: | |
branches: | |
- dev | |
# paths: | |
# - "CHANGELOG.md" | |
jobs: | |
update-changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # fetch complete history so auto-changelog can see it | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Install auto-changelog | |
run: npm install -g auto-changelog | |
- name: Generate changelog | |
run: auto-changelog | |
- name: Commit and push if it changed | |
run: | | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git commit -am "Update Changelog" || exit 0 | |
git push |