diff --git a/lib/main.js b/lib/main.js index ff58774..2b26aaa 100644 --- a/lib/main.js +++ b/lib/main.js @@ -82,13 +82,20 @@ function run() { yield execShellCommand(cmd); } + // Support local runner https://github.com/nektos/act + if (process.env.ACT) { + cmd = `sudo chown runner:docker /var/run/docker.sock`; + console.log(cmd); + yield execShellCommand(cmd); + } + cmd = 'ddev --version'; console.log(cmd); yield execShellCommand(cmd); cmd = 'ddev config global --instrumentation-opt-in=false --omit-containers=ddev-ssh-agent'; console.log(cmd); yield execShellCommand(cmd); - if(autostart){ + if (autostart){ if (ddevDir != '.') { cmd = 'cd ' + ddevDir + ' && ddev start'; } else {