Skip to content

Commit

Permalink
Fix ChangeLog in releases
Browse files Browse the repository at this point in the history
GitHub Actions doesn't support multi-line output in variables. We'll use
a temporary file instead.
  • Loading branch information
arnested committed Jun 19, 2021
1 parent 26f726f commit 21271c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
with:
fetch-depth: 0
- name: Build ChangeLog
id: changelog
run: echo "::set-output name=changes::$(npx conventional-changelog-cli)"
run: npx conventional-changelog-cli > "${{ runner.temp }}/ChangeLog.md"
- name: Rebuild dist
id: dist
run: |
Expand Down Expand Up @@ -69,4 +68,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.version.outputs.new_tag }}
name: Release ${{ steps.version.outputs.new_tag }}
body: ${{ steps.changelog.outputs.changes }}
bodyFile: ${{ runner.temp }}/ChangeLog.md

0 comments on commit 21271c2

Please sign in to comment.