Skip to content

Commit 0fd6bde

Browse files
Update github action
1 parent 44d10ed commit 0fd6bde

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
on:
22
push:
3-
branches:
3+
branches:
44
- main
5-
6-
5+
6+
77
jobs:
88
changelogs:
99
runs-on: ubuntu-latest
@@ -12,7 +12,16 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v2
15-
- name: Generate
15+
- name: Generate
1616
uses: tj-actions/[email protected]
17+
- name: Commit change-logs
18+
run: |
19+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
20+
git config --local user.name "github-actions[bot]"
21+
git commit -m "Generate change logs" -a
22+
- name: Push change-logs
23+
uses: ad-m/github-push-action@master
24+
with:
25+
branch: ${{ github.ref }}
26+
1727

18-

0 commit comments

Comments
 (0)