From c0a662f7adaa19b74c3410595413eb89ecf99a64 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Wed, 5 Jul 2023 22:31:54 +0300 Subject: [PATCH] Update docker.ts Changed paths to Windows format. --- src/model/docker.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model/docker.ts b/src/model/docker.ts index 7d4387c..7a95c41 100644 --- a/src/model/docker.ts +++ b/src/model/docker.ts @@ -5,7 +5,7 @@ import { exec } from '@actions/exec'; 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 * multiple times and get the same result. */ @@ -165,7 +165,7 @@ const Docker = { ).join(';'); return `docker run \ - --workdir /github/workspace \ + --workdir c:${dockerWorkspacePath} \ --cidfile "${cidfile}" \ --rm \ --env UNITY_LICENSE \ @@ -191,7 +191,7 @@ const Docker = { --env GITHUB_HEAD_REF \ --env GITHUB_BASE_REF \ --env GITHUB_EVENT_NAME \ - --env GITHUB_WORKSPACE="/github/workspace" \ + --env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \ --env GITHUB_ACTION \ --env GITHUB_EVENT_PATH \ --env RUNNER_OS \