Skip to content

Commit 3ee1517

Browse files
authored
Use RUNNER_TEMP environment variable instead of a hardcoded path (#138)
1 parent 3e0842d commit 3ee1517

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

action/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/build-parameters.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class BuildParameters {
2222

2323
return {
2424
version: Input.unityVersion,
25+
runnerTempPath: process.env.RUNNER_TEMP,
2526
platform: Input.targetPlatform,
2627
projectPath: Input.projectPath,
2728
buildName: Input.buildName,

src/model/docker.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Docker {
2121
const {
2222
version,
2323
workspace,
24+
runnerTempPath,
2425
platform,
2526
projectPath,
2627
buildName,
@@ -77,8 +78,8 @@ class Docker {
7778
--env RUNNER_TEMP \
7879
--env RUNNER_WORKSPACE \
7980
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
80-
--volume "/home/runner/work/_temp/_github_home":"/github/home" \
81-
--volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" \
81+
--volume "${runnerTempPath}/_github_home":"/github/home" \
82+
--volume "${runnerTempPath}/_github_workflow":"/github/workflow" \
8283
--volume "${workspace}":"/github/workspace" \
8384
${image}`;
8485

0 commit comments

Comments
 (0)