Skip to content

Commit

Permalink
Fix GH workflow's multiline set-output clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
exquo committed Feb 15, 2022
1 parent e1d5052 commit 05d399b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05d399b

Please sign in to comment.