Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape newlines in "body" not work as intended #24

Open
KorewaLidesu opened this issue Jul 4, 2021 · 1 comment
Open

Escape newlines in "body" not work as intended #24

KorewaLidesu opened this issue Jul 4, 2021 · 1 comment

Comments

@KorewaLidesu
Copy link

KorewaLidesu commented Jul 4, 2021

I don't know how to describe it so... Action file
image

@stm2
Copy link

stm2 commented Aug 22, 2021

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants