You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pipes not working in @actions/exec node module #359
@Kerizer I have the same problem, the command I want to run is yes | sdkmanager --licenses to automatically accept all prompts with yes. This does not work, it takes | sdkmanager --licenses as one argument and prints that forever until I cancel the workflow.
A workaround I found is to use /bin/bash -c "my command" , e.g. /bin/bash -c "yes | sdkmanager --licenses". That worked for me.
Reacted by Pavlo Pakholka, Stefan Buck, sam, Juan Andrés Zeni, David Gang, Rick Staa, Thomas Skjølberg, Erik Sundell, Tiago Bento, JDonohue and 4 more
Activity
hrueger commentedon Mar 24, 2020
@Kerizer I have the same problem, the command I want to run is
yes | sdkmanager --licensesto automatically accept all prompts withyes. This does not work, it takes| sdkmanager --licensesas one argument and prints that forever until I cancel the workflow.A workaround I found is to use
/bin/bash -c "my command", e.g./bin/bash -c "yes | sdkmanager --licenses". That worked for me.hrueger commentedon Mar 25, 2020
As I just found out, this also affects chaining commands with
&&...rickstaa commentedon Dec 12, 2020
@hrueger Thanks a lot for the workaround. For future reference here is the windows equivalent:
WINDOWS:
thboop commentedon Apr 29, 2021
Closing as a dupe of #346
https://github.com/actions/toolkit/issues/359