Use RUNNER_TEMP environment variable instead of a hardcoded path (#138)

This commit is contained in:
xanantis 2020-08-22 17:59:08 +02:00 committed by GitHub
parent 3e0842dda0
commit 3ee15170fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 { return {
version: Input.unityVersion, version: Input.unityVersion,
runnerTempPath: process.env.RUNNER_TEMP,
platform: Input.targetPlatform, platform: Input.targetPlatform,
projectPath: Input.projectPath, projectPath: Input.projectPath,
buildName: Input.buildName, buildName: Input.buildName,

View File

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