Skip to content

Commit

Permalink
Remove GITHUB_WORKSPACE from image-environment-factory.ts and fix win…
Browse files Browse the repository at this point in the history
…dows workdir path in docker run command
  • Loading branch information
AndrewKahr committed Nov 22, 2022
1 parent 2a32a9d commit 40f4e3b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/model/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Docker {
const { workspace, actionFolder, unitySerial, gitPrivateToken } = parameters;

return `docker run \
--workdir /github/workspace \
--workdir c:/github/workspace \
--rm \
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
--env UNITY_SERIAL="${unitySerial}" \
Expand Down
1 change: 0 additions & 1 deletion src/model/image-environment-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ class ImageEnvironmentFactory {
{ name: 'GITHUB_HEAD_REF', value: process.env.GITHUB_HEAD_REF },
{ name: 'GITHUB_BASE_REF', value: process.env.GITHUB_BASE_REF },
{ name: 'GITHUB_EVENT_NAME', value: process.env.GITHUB_EVENT_NAME },
{ name: 'GITHUB_WORKSPACE', value: '/github/workspace' },
{ name: 'GITHUB_ACTION', value: process.env.GITHUB_ACTION },
{ name: 'GITHUB_EVENT_PATH', value: process.env.GITHUB_EVENT_PATH },
{ name: 'RUNNER_OS', value: process.env.RUNNER_OS },
Expand Down

0 comments on commit 40f4e3b

Please sign in to comment.