Skip to content

Commit

Permalink
fix(cd): strip the changelog header before escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jun 23, 2021
1 parent cb90048 commit 6b97c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ jobs:
run: |
if [ "${{ matrix.OS }}" = "ubuntu-18.04" ]; then
r=$(cat ${{ steps.git-cliff.outputs.changelog }})
r="$(printf "$r" | tail -n +3)"
r="${r//'%'/'%25'}"
r="${r//$'\n'/'%0A'}"
r="${r//$'\r'/'%0D'}"
r="$(printf "$r" | tail -n +3)"
echo "::set-output name=RELEASE_BODY::$r"
else
echo "::set-output name=RELEASE_BODY::${{ env.RELEASE_VERSION }}"
Expand Down

0 comments on commit 6b97c2d

Please sign in to comment.