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

Some way to invoke tool that requires stdin #1924

Open
Vampire opened this issue Jan 2, 2025 · 0 comments
Open

Some way to invoke tool that requires stdin #1924

Vampire opened this issue Jan 2, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Vampire
Copy link

Vampire commented Jan 2, 2025

The windows-2025 image preview does not yet have WSL installed properly.
So to make my setup-wsl action compatible, I need to first execute wsl --install --no-distribution.
My action uses @actions/exec to do the necessary tool executions.

The problem is, that calling wsl --install from an interactive shell works perfectly fine.
But if I do it via @actions/exec it behaves like if called using echo | wsl --install which refuses to do its work but just says WSL is not installed yet.

It would be nice if there were some way - if possible - to run tools that require stdin to be attached.

Using options.input does not work but behaves just the same.

@Vampire Vampire added the enhancement New feature or request label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant