We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, what is the correct way to escape a new line when multiple patterns are read from the output of a previous step
I have tried two different options at https://github.com/francesco-ballarin/test-artifacts-multiple/blob/main/.github/workflows/ci.yml
The first option is using \\n as separator. After #375, thanks to https://github.com/actions/upload-artifact/blob/main/dist/index.js#L2280 I was expecting this to work, but I get
\\n
Warning: No files were found with the provided path: *.txt\n*.dat. No artifacts will be uploaded.
(notice that using \n would not work, as it would insert a new line in the echo ... >> ${GITHUB_OUTPUT} call)
\n
echo ... >> ${GITHUB_OUTPUT}
The second option is using %0A as separator. Before #375, I was quite sure that using %0A used to work (see e.g. https://trstringer.com/github-actions-multiline-strings/). After #375, I am quite confindent it will not work anymore, because https://github.com/actions/upload-artifact/blob/main/dist/index.js#L2278 escapes the % in %0A. Due to this, I get
%0A
%
Warning: No files were found with the provided path: .txt%0A*.dat. No artifacts will be uploaded.
Can you comment on what is the correct way to use multiple patterns coming from GITHUB_OUTPUT in the v3 version of this action?
v3
Thanks!
Being able to read multiple patterns from the output of a previous step
https://github.com/francesco-ballarin/test-artifacts-multiple/blob/main/.github/workflows/ci.yml
No response
linux
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
Hi,
what is the correct way to escape a new line when multiple patterns are read from the output of a previous step
I have tried two different options at
https://github.com/francesco-ballarin/test-artifacts-multiple/blob/main/.github/workflows/ci.yml
The first option is using
\\n
as separator. After #375, thanks tohttps://github.com/actions/upload-artifact/blob/main/dist/index.js#L2280
I was expecting this to work, but I get
(notice that using
\n
would not work, as it would insert a new line in theecho ... >> ${GITHUB_OUTPUT}
call)The second option is using
%0A
as separator.Before #375, I was quite sure that using
%0A
used to work (see e.g. https://trstringer.com/github-actions-multiline-strings/). After #375, I am quite confindent it will not work anymore, becausehttps://github.com/actions/upload-artifact/blob/main/dist/index.js#L2278
escapes the
%
in%0A
. Due to this, I getCan you comment on what is the correct way to use multiple patterns coming from GITHUB_OUTPUT in the
v3
version of this action?Thanks!
What did you expect to happen?
Being able to read multiple patterns from the output of a previous step
How can we reproduce it?
https://github.com/francesco-ballarin/test-artifacts-multiple/blob/main/.github/workflows/ci.yml
Anything else we need to know?
No response
What version of the action are you using?
v3
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered: