This commit is contained in:
TingluoHuang
2021-10-28 19:57:37 -04:00
parent 11ff2be7e9
commit 80d0b58f3c
2 changed files with 13 additions and 0 deletions

View File

@@ -126,6 +126,13 @@ async function run(): Promise<void> {
// -e RUNNER_TEMP -e RUNNER_WORKSPACE
// eccdf520697a035599d6e8c8dc801f004fdd3797cdce88f590aba3669a88d9bc sh -e /__w/_temp/d3b30383-719c-4e76-a16f-8f85443352be.sh
const cpTempArgs = [
'cp',
'/actions-runner/_work/_temp',
'job-container:/__w/_temp'
]
await exec.exec('kubectl', cpTempArgs)
const execArgs = ['exec']
execArgs.push(execInput.jobContainer.containerId)
execArgs.push('-i')

View File

@@ -3088,6 +3088,12 @@ function run() {
// -e RUNNER_OS -e RUNNER_NAME -e RUNNER_TOOL_CACHE
// -e RUNNER_TEMP -e RUNNER_WORKSPACE
// eccdf520697a035599d6e8c8dc801f004fdd3797cdce88f590aba3669a88d9bc sh -e /__w/_temp/d3b30383-719c-4e76-a16f-8f85443352be.sh
const cpTempArgs = [
'cp',
'/actions-runner/_work/_temp',
'job-container:/__w/_temp'
];
yield exec.exec('kubectl', cpTempArgs);
const execArgs = ['exec'];
execArgs.push(execInput.jobContainer.containerId);
execArgs.push('-i');