Update docker.ts

Changed paths to Windows format.
pull/231/head
Anastasia 2023-07-05 22:31:54 +03:00 committed by GitHub
parent 7787abf249
commit c0a662f7ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import { exec } from '@actions/exec';
import path from 'path'; import path from 'path';
/** /**
* Build a path for a docker --cidfile parameter. Docker will store the the created container. * Build a path for a docker --cidfile parameter. Docker will store the created container.
* This path is stable for the whole execution of the action, so it can be executed with the same parameters * This path is stable for the whole execution of the action, so it can be executed with the same parameters
* multiple times and get the same result. * multiple times and get the same result.
*/ */
@ -165,7 +165,7 @@ const Docker = {
).join(';'); ).join(';');
return `docker run \ return `docker run \
--workdir /github/workspace \ --workdir c:${dockerWorkspacePath} \
--cidfile "${cidfile}" \ --cidfile "${cidfile}" \
--rm \ --rm \
--env UNITY_LICENSE \ --env UNITY_LICENSE \
@ -191,7 +191,7 @@ const Docker = {
--env GITHUB_HEAD_REF \ --env GITHUB_HEAD_REF \
--env GITHUB_BASE_REF \ --env GITHUB_BASE_REF \
--env GITHUB_EVENT_NAME \ --env GITHUB_EVENT_NAME \
--env GITHUB_WORKSPACE="/github/workspace" \ --env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \
--env GITHUB_ACTION \ --env GITHUB_ACTION \
--env GITHUB_EVENT_PATH \ --env GITHUB_EVENT_PATH \
--env RUNNER_OS \ --env RUNNER_OS \