Use RUNNER_TEMP environment variable instead of a hardcoded path

pull/138/head
xanantis 2020-08-22 12:02:27 +02:00
parent 3e0842dda0
commit 9767d3c075
3 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -22,6 +22,7 @@ class BuildParameters {
return {
version: Input.unityVersion,
runnerTempPath: process.env.RUNNER_TEMP,
platform: Input.targetPlatform,
projectPath: Input.projectPath,
buildName: Input.buildName,

View File

@ -21,6 +21,7 @@ class Docker {
const {
version,
workspace,
runnerTempPath,
platform,
projectPath,
buildName,
@ -77,8 +78,8 @@ class Docker {
--env RUNNER_TEMP \
--env RUNNER_WORKSPACE \
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
--volume "/home/runner/work/_temp/_github_home":"/github/home" \
--volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" \
--volume "${runnerTempPath}/_github_home":"/github/home" \
--volume "${runnerTempPath}/_github_workflow":"/github/workflow" \
--volume "${workspace}":"/github/workspace" \
${image}`;