Skip to content

Commit

Permalink
ci: Preserve multiline strings in release body
Browse files Browse the repository at this point in the history
Fixes: #6
  • Loading branch information
playpauseandstop committed Jun 12, 2020
1 parent 482a00a commit d14ea4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ jobs:
echo "::set-output name=subject::${subject}"
body=$(git tag -l --format="%(body)" ${tag_name})
# Preserve multiline strings as per
# https://github.community/t/set-output-truncates-multiline-strings/16852/5
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::${body}"
prerelease=false
Expand Down

0 comments on commit d14ea4f

Please sign in to comment.