Skip to content

Commit 9a0db35

Browse files
committed
Support nektos/act
1 parent 5aff438 commit 9a0db35

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/main.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,20 @@ function run() {
8282
yield execShellCommand(cmd);
8383
}
8484

85+
// Support local runner https://github.com/nektos/act
86+
if (process.env.ACT) {
87+
cmd = `sudo chown runner:docker /var/run/docker.sock`;
88+
console.log(cmd);
89+
yield execShellCommand(cmd);
90+
}
91+
8592
cmd = 'ddev --version';
8693
console.log(cmd);
8794
yield execShellCommand(cmd);
8895
cmd = 'ddev config global --instrumentation-opt-in=false --omit-containers=ddev-ssh-agent';
8996
console.log(cmd);
9097
yield execShellCommand(cmd);
91-
if(autostart){
98+
if (autostart){
9299
if (ddevDir != '.') {
93100
cmd = 'cd ' + ddevDir + ' && ddev start';
94101
} else {

0 commit comments

Comments
 (0)