toolkit
toolkit copied to clipboard
Some way to invoke tool that requires stdin
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.