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