unzip to results directory explicitly

pull/310/head
Frostebite 2022-01-24 19:59:14 +00:00
parent c8ee483be8
commit 08b90ff4fc
4 changed files with 5 additions and 1172 deletions

2
dist/index.js vendored
View File

@ -600,7 +600,7 @@ class Caching {
if (__1.Input.cloudRunnerTests) {
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree ${cacheFolder}`);
}
yield cloud_runner_system_1.CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip ${path_1.default.basename(resultsDirectory)}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip -d ${path_1.default.basename(resultsDirectory)}`);
remote_client_logger_1.RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
console_1.assert(`${fs_1.default.existsSync(fullDestination)}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}"`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

1171
dist/licenses.txt vendored

File diff suppressed because it is too large Load Diff

View File

@ -74,7 +74,7 @@ export class Caching {
if (Input.cloudRunnerTests) {
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
}
await CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip ${path.basename(resultsDirectory)}`);
await CloudRunnerSystem.Run(`unzip ${cacheSelection}.zip -d ${path.basename(resultsDirectory)}`);
RemoteClientLogger.log(`cache item extracted to ${fullDestination}`);
assert(`${fs.existsSync(fullDestination)}`);
await CloudRunnerSystem.Run(`mv "${fullDestination}" "${destinationFolder}"`);