From 862d19804098b6c723fa5e09e1048e3e1923e53d Mon Sep 17 00:00:00 2001 From: Casey Lee Date: Wed, 22 Apr 2020 23:57:36 -0700 Subject: [PATCH] fix: #170 #171 - add RUNNER_OS and RUNNER_TEMP --- act/runner/run_context.go | 1 + act/runner/step_context.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/act/runner/run_context.go b/act/runner/run_context.go index 034aaf23..fdf996cf 100644 --- a/act/runner/run_context.go +++ b/act/runner/run_context.go @@ -78,6 +78,7 @@ func (rc *RunContext) startJobContainer() common.Executor { } envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TOOL_CACHE", "/opt/hostedtoolcache")) + envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_OS", "Linux")) binds := []string{ fmt.Sprintf("%s:%s", "/var/run/docker.sock", "/var/run/docker.sock"), diff --git a/act/runner/step_context.go b/act/runner/step_context.go index bfa9b0da..70039b52 100644 --- a/act/runner/step_context.go +++ b/act/runner/step_context.go @@ -164,6 +164,8 @@ func (sc *StepContext) newStepContainer(ctx context.Context, image string, cmd [ } envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TOOL_CACHE", "/opt/hostedtoolcache")) + envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_OS", "Linux")) + envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TEMP", "/tmp")) binds := []string{ fmt.Sprintf("%s:%s", "/var/run/docker.sock", "/var/run/docker.sock"),