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

Spaces in filenames #7

Open
wes-sleeman opened this issue Jun 2, 2021 · 3 comments
Open

Spaces in filenames #7

wes-sleeman opened this issue Jun 2, 2021 · 3 comments

Comments

@wes-sleeman
Copy link

I have filenames with literal spaces in them, but there is no way (so far as I can tell from documentation or reading the source) to get the action to handle the space without breaking into a new file. Quoting with both single and double quotes fails as well as escaping with backslashes.

@Toumash
Copy link

Toumash commented Jun 6, 2021

index.js#L14 is problematic one. The solution i see would be to change it to to comma separation, but that would be a breaking change.

The other one would be to write algorithm that separates multiple files based on said quotes.

@Journeyman1337
Copy link

Journeyman1337 commented Aug 30, 2022

You could do like softprops/action-gh-release@v1 and use newlines if first line is a pipe. I did this thinking it would work, but it tries to create a file path with a newline character in it.

Like:

        with:
          files: |
            file.txt
            image.png

@Toumash
Copy link

Toumash commented Aug 30, 2022

Oh yeah, then probably you can just use getMultilineInput from the code mentioned above.
See the library code here

const core = require("@actions/core");
core.getMultilineInput('files')

What about using " " for filenames. Would that work?

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

3 participants