Skip to content

support async handlers inference #2

support async handlers inference

support async handlers inference #2

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