-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: KelvinYang0320 <[email protected]>
- Loading branch information
1 parent
f553b4c
commit b2b6076
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Generate Changelog | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
generate_changelog: | ||
name: Update Changelog | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout dev | ||
uses: actions/checkout@v2 | ||
|
||
- name: Generate changelog | ||
uses: charmixer/[email protected] | ||
with: | ||
token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }} | ||
|
||
- name: Commit files | ||
run: | | ||
git config --local user.email ${{ secrets.AIDUDEZZZ_BOT_EMAIL }} | ||
git config --local user.name ${{ secrets.AIDUDEZZZ_BOT_USER }} | ||
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo "push=true" >> $GITHUB_ENV || echo "No changes to CHANGELOG.md" | ||
- name: Push changes | ||
if: env.push == 'true' | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }} | ||
branch: master |