Skip to content

Commit 335e4d8

Browse files
Create update-changelog.yml
1 parent 3530ff4 commit 335e4d8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update Changelog
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
update:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.x
24+
25+
- name: Install dependencies
26+
run: |
27+
pip install PyGithub
28+
pip install python-dateutil
29+
30+
- name: Run script
31+
run: python update_changelog.py ${{ github.sha }} ${{ github.token }}
32+
33+
- name: Commit changes
34+
run: |
35+
git config --local user.email "action@github.com"
36+
git config --local user.name "GitHub Action"
37+
git add changelog.md
38+
git commit -m "Update changelog"
39+
git push

0 commit comments

Comments
 (0)