1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-15 00:23:16 +03:00

fix(cd): strip the changelog header before escaping

This commit is contained in:
orhun 2021-06-24 01:54:14 +03:00
parent cb90048f7b
commit 6b97c2d18c
No known key found for this signature in database
GPG Key ID: B928720AEC532117

View File

@ -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 }}"