-
At this moment, each time It would be better if it could have a mode where it would reconfigure it only if needed. Running it twice should have no effects. Even more interesting is that running it a pre-configured machine destroyed my github runner because I installed it inside the wsl, this being an important performance hack for the very slow WSL. Basically I had a symlink from When the action run,.... removed the already existing WSL installation, which included the runner itself. :D I tried to add sanity check before calling the action that looked like:
The problem is that I soon discovered that I NEED to run the action all the time in order to be able to benefit from its ability to change the default shell to use wsl. I don't know how to only make use of this part of it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not entirely sure what you mean. |
Beta Was this translation helpful? Give feedback.
I'm not entirely sure what you mean.
Which part destroys what?
The action should only do things that are necessary and indeed running it a second time should not do much.
The "Install WSL" step if you meant that for example is guarded by doing
wsl --status
and only being executed if the output contains "is not installed".