Try only copying the file

pull/705/head
Daniel Lupiañez Casares 2025-04-29 12:47:00 +02:00
parent 108c850168
commit 7def651231
4 changed files with 1 additions and 21 deletions

6
dist/index.js generated vendored
View File

@ -6104,8 +6104,6 @@ class Docker {
} }
static getWindowsCommand(image, parameters) { static getWindowsCommand(image, parameters) {
const { workspace, actionFolder, runnerTempPath, gitPrivateToken, dockerWorkspacePath, dockerCpuLimit, dockerMemoryLimit, dockerIsolationMode, } = parameters; const { workspace, actionFolder, runnerTempPath, gitPrivateToken, dockerWorkspacePath, dockerCpuLimit, dockerMemoryLimit, dockerIsolationMode, } = parameters;
// 🔥 Add log for runnerTempPath
console.log(`🛠️ [DockerCommand] runnerTempPath = ${runnerTempPath}`);
const githubHome = node_path_1.default.join(runnerTempPath, '_github_home'); const githubHome = node_path_1.default.join(runnerTempPath, '_github_home');
if (!(0, node_fs_1.existsSync)(githubHome)) if (!(0, node_fs_1.existsSync)(githubHome))
(0, node_fs_1.mkdirSync)(githubHome); (0, node_fs_1.mkdirSync)(githubHome);
@ -6114,7 +6112,6 @@ class Docker {
--rm \ --rm \
${image_environment_factory_1.default.getEnvVarString(parameters)} \ ${image_environment_factory_1.default.getEnvVarString(parameters)} \
--env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \ --env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \
--env UPM_GLOBAL_CONFIG_FILE="C:/githubhome/.upmconfig.toml" \
${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \ ${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \
--volume "${workspace}":"c:${dockerWorkspacePath}" \ --volume "${workspace}":"c:${dockerWorkspacePath}" \
--volume "${githubHome}":"C:/githubhome" \ --volume "${githubHome}":"C:/githubhome" \
@ -6132,9 +6129,6 @@ class Docker {
--isolation=${dockerIsolationMode} \ --isolation=${dockerIsolationMode} \
${image} \ ${image} \
powershell c:/steps/entrypoint.ps1`; powershell c:/steps/entrypoint.ps1`;
// 🔥 Add log for final dockerCommand
console.log('🛠️ [DockerCommand] Final Windows Docker command:');
console.log(dockerCommand);
return dockerCommand; return dockerCommand;
} }
} }

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,5 @@
Get-Process Get-Process
# List all files under C:\Users
Write-Host "Listing contents of C:\Users"
Get-ChildItem -Recurse "C:\Users" | ForEach-Object {
Write-Host ($_.FullName)
}
# Copy .upmconfig.toml if it exists # Copy .upmconfig.toml if it exists
if (Test-Path "C:\githubhome\.upmconfig.toml") { if (Test-Path "C:\githubhome\.upmconfig.toml") {
Write-Host "Copying .upmconfig.toml to $Env:USERPROFILE\.upmconfig.toml" Write-Host "Copying .upmconfig.toml to $Env:USERPROFILE\.upmconfig.toml"

View File

@ -100,9 +100,6 @@ class Docker {
dockerIsolationMode, dockerIsolationMode,
} = parameters; } = parameters;
// 🔥 Add log for runnerTempPath
console.log(`🛠️ [DockerCommand] runnerTempPath = ${runnerTempPath}`);
const githubHome = path.join(runnerTempPath, '_github_home'); const githubHome = path.join(runnerTempPath, '_github_home');
if (!existsSync(githubHome)) mkdirSync(githubHome); if (!existsSync(githubHome)) mkdirSync(githubHome);
@ -111,7 +108,6 @@ class Docker {
--rm \ --rm \
${ImageEnvironmentFactory.getEnvVarString(parameters)} \ ${ImageEnvironmentFactory.getEnvVarString(parameters)} \
--env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \ --env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \
--env UPM_GLOBAL_CONFIG_FILE="C:/githubhome/.upmconfig.toml" \
${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \ ${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \
--volume "${workspace}":"c:${dockerWorkspacePath}" \ --volume "${workspace}":"c:${dockerWorkspacePath}" \
--volume "${githubHome}":"C:/githubhome" \ --volume "${githubHome}":"C:/githubhome" \
@ -130,10 +126,6 @@ class Docker {
${image} \ ${image} \
powershell c:/steps/entrypoint.ps1`; powershell c:/steps/entrypoint.ps1`;
// 🔥 Add log for final dockerCommand
console.log('🛠️ [DockerCommand] Final Windows Docker command:');
console.log(dockerCommand);
return dockerCommand; return dockerCommand;
} }
} }