Skip to content

Commit 3544f7d

Browse files
committed
ci: changelog check
1 parent 7887965 commit 3544f7d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/create-binaries.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ jobs:
2525
| wget -qi -
2626
tar -xvzf commitlog-linux-amd64.tar.gz
2727
chmod +x commitlog
28-
export CHANGELOG="$(./commitlog .)"
29-
CHANGELOG="${CHANGELOG//'%'/'%25'}"
30-
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
31-
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
32-
echo "$CHANGELOG"
33-
echo "::set-output name=changelog::$(echo "$CHANGELOG")"
28+
./commitlog . > CHANGELOG.txt
3429
- name: Generate build files
3530
uses: thatisuday/go-cross-build@v1
3631
with:
@@ -43,7 +38,7 @@ jobs:
4338
uses: softprops/action-gh-release@v1
4439
if: startsWith(github.ref, 'refs/tags/')
4540
with:
46-
body: ${{ steps.generate_log.outputs.changelog }}
41+
body_path: CHANGELOG.txt
4742
files: dist/*
4843
env:
4944
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGELOG.md

0 commit comments

Comments
 (0)