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

core.setOutput should support null separated values #812

Open
sk- opened this issue May 18, 2021 · 0 comments
Open

core.setOutput should support null separated values #812

sk- opened this issue May 18, 2021 · 0 comments
Labels
core enhancement New feature or request

Comments

@sk-
Copy link

sk- commented May 18, 2021

Describe the enhancement
Currently setOutput escapes new lines, but it would be great if it also escaped the null character so that one can use it to separate array outputs.

Additional information
Right now I'm using a new line to separate the array entries, but that means that if the entries have whitespaces we need to use the following:

echo "${{ steps.changed-files.outputs.files }}" | tr '\n' '\0' | xargs -0 ls -lh

However is setOutput supported null separated bytes, we could just do:

echo "${{ steps.changed-files.outputs.files }}" | xargs -0 ls -lh
@sk- sk- added the enhancement New feature or request label May 18, 2021
@thboop thboop changed the title core.setOuput should support null separated values core.setOutput should support null separated values May 20, 2021
@thboop thboop added the core label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants