Skip to content

Commit 835a399

Browse files
committed
ci: update changelog generator
1 parent 074d4ab commit 835a399

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.github/workflows/changelog.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,22 @@ name: Changelogs
22

33
on:
44
push:
5-
tags:
6-
- '*'
5+
tags: "*"
76

87
jobs:
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 }}

0 commit comments

Comments
 (0)