Copy cloud runner cache into github workspace directory

pull/461/head
Frostebite 2022-09-28 01:10:53 +01:00
parent d950f8b6ef
commit a265b507a6
3 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -3635,11 +3635,11 @@ class LocalDockerCloudRunner {
const entrypointFilePath = `start.sh`; const entrypointFilePath = `start.sh`;
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash
set -e set -e
mkdir -p /github/workflow/cloud-runner-cache mkdir -p /github/workspace/cloud-runner-cache
mkdir -p /data/cache mkdir -p /data/cache
cp /github/workflow/cloud-runner-cache/* /data/cache cp -r /github/workspace/cloud-runner-cache /data/cache
${commands} ${commands}
cp /data/cache/* /github/workflow/cloud-runner-cache`, { cp -r /data/cache /github/workspace/cloud-runner-cache`, {
flag: 'w', flag: 'w',
}); });
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"chmod +x /github/workspace/${entrypointFilePath} && /github/workspace/${entrypointFilePath}"`, content, { yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"chmod +x /github/workspace/${entrypointFilePath} && /github/workspace/${entrypointFilePath}"`, content, {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -91,11 +91,11 @@ class LocalDockerCloudRunner implements ProviderInterface {
`${workspace}/${entrypointFilePath}`, `${workspace}/${entrypointFilePath}`,
`#!/bin/bash `#!/bin/bash
set -e set -e
mkdir -p /github/workflow/cloud-runner-cache mkdir -p /github/workspace/cloud-runner-cache
mkdir -p /data/cache mkdir -p /data/cache
cp /github/workflow/cloud-runner-cache/* /data/cache cp -r /github/workspace/cloud-runner-cache /data/cache
${commands} ${commands}
cp /data/cache/* /github/workflow/cloud-runner-cache`, cp -r /data/cache /github/workspace/cloud-runner-cache`,
{ {
flag: 'w', flag: 'w',
}, },