File tree Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Expand file tree Collapse file tree 2 files changed +39
-22
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Changelog
2
+
3
+ on :
4
+ # release:
5
+ # types: [published]
6
+ push :
7
+ branches :
8
+ - dev
9
+ # paths:
10
+ # - "CHANGELOG.md"
11
+
12
+ jobs :
13
+ update-changelog :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - name : Checkout code
18
+ uses : actions/checkout@v2
19
+ with :
20
+ fetch-depth : 0 # fetch complete history so auto-changelog can see it
21
+
22
+ - name : Set up Node.js
23
+ uses : actions/setup-node@v2
24
+ with :
25
+ node-version : ' 14'
26
+
27
+ - name : Install auto-changelog
28
+ run : npm install -g auto-changelog
29
+
30
+ - name : Generate changelog
31
+ run : auto-changelog
32
+
33
+ - name : Commit and push if it changed
34
+ run : |
35
+ git diff
36
+ git config --global user.email "actions@github.com"
37
+ git config --global user.name "GitHub Action"
38
+ git commit -am "Update Changelog" || exit 0
39
+ git push
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments