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
22
33on :
44 push :
5- tags :
6- - ' *'
5+ tags : " *"
76
87jobs :
9- pre-release :
10- name : Pre Release
8+ build :
119 runs-on : ubuntu-latest
10+
1211 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
1813 with :
1914 fetch-depth : 0
2015 - name : Generate Change Log
2116 id : generate_log
2217 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
3021 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