File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments