Skip to content

Commit 5230c98

Browse files
veds12KelvinYang0320
authored andcommitted
added changelog
1 parent f553b4c commit 5230c98

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Generate Changelog
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
7+
jobs:
8+
generate_changelog:
9+
name: Update Changelog
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout dev
13+
uses: actions/checkout@v2
14+
15+
- name: Generate changelog
16+
uses: charmixer/[email protected]
17+
with:
18+
token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }}
19+
20+
- name: Commit files
21+
run: |
22+
git config --local user.email ${{ secrets.AIDUDEZZZ_BOT_EMAIL }}
23+
git config --local user.name ${{ secrets.AIDUDEZZZ_BOT_USER }}
24+
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo "push=true" >> $GITHUB_ENV || echo "No changes to CHANGELOG.md"
25+
- name: Push changes
26+
if: env.push == 'true'
27+
uses: ad-m/github-push-action@master
28+
with:
29+
github_token: ${{ secrets.AIDUDEZZ_BOT_TOKEN }}
30+
branch: dev

0 commit comments

Comments
 (0)