Skip to content

Commit

Permalink
fix: add base64 to encode the changelog output
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRichardH committed Sep 24, 2023
1 parent 8f78768 commit 8915f0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Set output variables
id: vars
run: |
changelogs="$(cog changelog --at ${{ steps.release.outputs.version }} -t full_hash)"
echo "changelogs={$changelogs}" >> "$GITHUB_OUTPUT"
changelogs="$(cog changelog --at ${{ steps.release.outputs.version }} -t full_hash | base64 --wrap=0)"
echo "changelogs=$changelogs" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand All @@ -39,10 +39,10 @@ jobs:
branch: "release/${{ steps.release.outputs.version }}"
commit-message: "release(version): bump to ${{ steps.release.outputs.version }}"
title: Bump to ${{ steps.release.outputs.version }}
body: ${{ steps.vars.outputs.changelogs }}
body: $(echo ${{ steps.vars.outputs.changelogs }} | base64 -d)

- name: Upload github release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.vars.outputs.changelogs }}
body: $(echo ${{ steps.vars.outputs.changelogs }} | base64 -d)
tag_name: ${{ steps.release.outputs.version }}

0 comments on commit 8915f0b

Please sign in to comment.