File tree Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Expand file tree Collapse file tree 1 file changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -2,32 +2,22 @@ name: Changelogs
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - ' *'
5
+ tags : " *"
7
6
8
7
jobs :
9
- pre-release :
10
- name : Pre Release
8
+ build :
11
9
runs-on : ubuntu-latest
10
+
12
11
steps :
13
- - name : Get current date
14
- id : date
15
- run : echo "::set-output name=date::$(date +'%Y-%m-%d')"
16
- - name : Checkout the repository
17
- uses : actions/checkout@v2
12
+ - uses : actions/checkout@v2
18
13
with :
19
14
fetch-depth : 0
20
15
- name : Generate Change Log
21
16
id : generate_log
22
17
run : |
23
- curl -L https://github.com/barelyhuman/commitlog/releases/download/v0.0.7-dev.4/commitlog-linux-amd64.tar.gz -o clog.tar.gz
24
- tar -xvzf clog.tar.gz
25
- chmod +x commitlog
26
- ./commitlog . > CHANGELOG.txt
27
- - name : Release
28
- uses : softprops/action-gh-release@v1
29
- if : startsWith(github.ref, 'refs/tags/')
18
+ curl -sf https://gobinaries.com/barelyhuman/commitlog | sh
19
+ commitlog > CHANGELOG.md
20
+ - uses : ncipollo/release-action@v1
30
21
with :
31
- body_path : CHANGELOG.txt
32
- env :
33
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22
+ bodyFile : " CHANGELOG.md"
23
+ token : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments