Base image example windows core 2022 always install the runner as a service.
$action = New-ScheduledTaskAction -WorkingDirectory "$pwd" -Execute "run.cmd"
This fail when enable_jit_config
or enable_ephemeral_runners
is true, because of missing -Argument "--jitconfig $config"
Without this, runner will never be connected to github.
Context:
- Github cloud
- Organization runner
- Github runner v2.317.0