Skip to content

Commit 91a93bd

Browse files
committed
Create temporary directories for GitHub workflow execution
This is now needed since the switch from the Docker CLI to the Docker Go lib (some defaults were turned on by the CLI)
1 parent a2a3f58 commit 91a93bd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

nodes/gh-action@v1.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,17 @@ func (n *GhActionNode) ExecuteDocker(c *core.ExecutionState, workingDirectory st
264264
return core.CreateErr(c, nil, "RUNNER_TEMP is not set")
265265
}
266266

267+
tempDirs := []string{
268+
filepath.Join(sysRunnerTempDir, "_github_workflow"),
269+
filepath.Join(sysRunnerTempDir, "_github_home"),
270+
filepath.Join(sysRunnerTempDir, "_runner_file_commands"),
271+
}
272+
for _, dir := range tempDirs {
273+
if err := os.MkdirAll(dir, 0755); err != nil {
274+
return core.CreateErr(c, err, "failed to create directory %s", dir)
275+
}
276+
}
277+
267278
sysGithubWorkspace := env["GITHUB_WORKSPACE"]
268279
if sysGithubWorkspace == "" {
269280
return core.CreateErr(c, nil, "GITHUB_WORKSPACE is not set")

0 commit comments

Comments
 (0)