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:
parent
cb90048f7b
commit
6b97c2d18c
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user