Skip to content

Commit

Permalink
Support nektos/act
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish authored and rfay committed Apr 4, 2024
1 parent 9dc2229 commit 2db43a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2db43a8

Please sign in to comment.