github-release
github-release copied to clipboard
Escape newlines in "body" not work as intended
I don't know how to describe it so... Action file
Hi, here is what I did. Might be a bit clunky but works for me:
value=$(cat body.txt)
value="${value//'%'/'%25'}"
value="${value//$'\n'/'%0A'}"
value="${value//$'\r'/'%0D'}"
echo "::set-output name=BODY::$value"