Skip to content

Commit

Permalink
fix(cd): use printf to prevent field splitting the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jun 21, 2021
1 parent 5677281 commit 92a4b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
r="${r//'%'/'%25'}"
r="${r//$'\n'/'%0A'}"
r="${r//$'\r'/'%0D'}"
r="$(echo $r | tail -n +3)"
r="$(printf "$r" | tail -n +3)"
echo "::set-output name=RELEASE_BODY::$r"
else
echo "::set-output name=RELEASE_BODY::${{ env.RELEASE_VERSION }}"
Expand Down

0 comments on commit 92a4b0d

Please sign in to comment.