summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Lee <cplee@nektos.com>2020-04-23 17:18:36 +0200
committerCasey Lee <cplee@nektos.com>2020-04-23 17:18:36 +0200
commita48cce3a78d915d7c9e6bd28248926578caaf1c4 (patch)
tree8c0a4bb63d855e2a913510dce13537b75fd73027
parentfix: #170 #171 - add RUNNER_OS and RUNNER_TEMP (diff)
downloadforgejo-act-0.2.8.tar.xz
forgejo-act-0.2.8.zip
fix: #170 add RUNNER_TEMPv0.2.8
-rw-r--r--pkg/runner/run_context.go1
-rw-r--r--pkg/runner/testdata/node/push.yml3
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go
index fdf996c..5823d43 100644
--- a/pkg/runner/run_context.go
+++ b/pkg/runner/run_context.go
@@ -79,6 +79,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"))
+ envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TEMP", "/tmp"))
binds := []string{
fmt.Sprintf("%s:%s", "/var/run/docker.sock", "/var/run/docker.sock"),
diff --git a/pkg/runner/testdata/node/push.yml b/pkg/runner/testdata/node/push.yml
index e8a284d..4dfc80d 100644
--- a/pkg/runner/testdata/node/push.yml
+++ b/pkg/runner/testdata/node/push.yml
@@ -9,8 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
- node-version: 12
- registry-url: https://registry.npmjs.org/
+ node-version: 12.6
- run: which node
- name: Install Dependencies
run: npm install