From 6b97c2d18c05fb9cf27088a39b24d12ab1b0c556 Mon Sep 17 00:00:00 2001 From: orhun Date: Thu, 24 Jun 2021 01:54:14 +0300 Subject: [PATCH] fix(cd): strip the changelog header before escaping --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 84174104..1f003f02 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 }}"