diff --git a/dist/index.js b/dist/index.js index 591c3043..d9ffab46 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 25834821..56607248 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/dist/platforms/windows/entrypoint.ps1 b/dist/platforms/windows/entrypoint.ps1 index 81d2bf0c..0868015d 100644 --- a/dist/platforms/windows/entrypoint.ps1 +++ b/dist/platforms/windows/entrypoint.ps1 @@ -1,5 +1,13 @@ Get-Process +# Copy .upmconfig.toml if it exists +if (Test-Path "C:\githubhome\.upmconfig.toml") { + Write-Host "Copying .upmconfig.toml to $Env:USERPROFILE\.upmconfig.toml" + Copy-Item -Path "C:\githubhome\.upmconfig.toml" -Destination "$Env:USERPROFILE\.upmconfig.toml" -Force +} else { + Write-Host "No .upmconfig.toml found at C:\githubhome" +} + # Import any necessary registry keys, ie: location of windows 10 sdk # No guarantee that there will be any necessary registry keys, ie: tvOS Get-ChildItem -Path c:\regkeys -File | ForEach-Object { reg import $_.fullname } diff --git a/src/model/docker.ts b/src/model/docker.ts index 544540f7..8820fbbe 100644 --- a/src/model/docker.ts +++ b/src/model/docker.ts @@ -92,6 +92,7 @@ class Docker { const { workspace, actionFolder, + runnerTempPath, gitPrivateToken, dockerWorkspacePath, dockerCpuLimit, @@ -99,6 +100,9 @@ class Docker { dockerIsolationMode, } = parameters; + const githubHome = path.join(runnerTempPath, '_github_home'); + if (!existsSync(githubHome)) mkdirSync(githubHome); + return `docker run \ --workdir c:${dockerWorkspacePath} \ --rm \ @@ -106,6 +110,7 @@ class Docker { --env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \ ${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \ --volume "${workspace}":"c:${dockerWorkspacePath}" \ + --volume "${githubHome}":"C:/githubhome" \ --volume "c:/regkeys":"c:/regkeys" \ --volume "C:/Program Files/Microsoft Visual Studio":"C:/Program Files/Microsoft Visual Studio" \ --volume "C:/Program Files (x86)/Microsoft Visual Studio":"C:/Program Files (x86)/Microsoft Visual Studio" \