From 05d399b1b7e8cf1e7d906abe0641a3718aa77b99 Mon Sep 17 00:00:00 2001 From: exquo <62397152+exquo@users.noreply.github.com> Date: Tue, 15 Feb 2022 20:32:28 +0000 Subject: [PATCH] Fix GH workflow's multiline set-output clipping --- .github/workflows/draft-release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index 772db68..640e9be 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -38,6 +38,7 @@ jobs: #git cat-file -p "$REF_NAME" | tail -n +8 msg=$(git tag -l "$REF_NAME" --format='%(contents:body)') # Returns an empty string for non-annotated (ligthweight) tags. + msg="${msg//$'\n'/'%0A'}" # https://github.community/t/set-output-truncates-multiline-strings/16852 echo "::set-output name=msg::${msg}" - name: Create new release draft