extract lib in caching flow

pull/496/head
Frostebite 2023-02-13 16:56:05 +00:00
parent befff4a1e6
commit dd3bc16a63
3 changed files with 5 additions and 5 deletions

4
dist/index.js generated vendored
View File

@ -4404,8 +4404,8 @@ class Caching {
if (!(yield fileExists(destinationFolder))) { if (!(yield fileExists(destinationFolder))) {
yield fs_1.default.promises.mkdir(destinationFolder); yield fs_1.default.promises.mkdir(destinationFolder);
} }
cloud_runner_logger_1.default.log(yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}"`)); // CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}"`));
cloud_runner_logger_1.default.log(yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$`)); // CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$`));
const latestInBranch = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`)) const latestInBranch = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`))
.replace(/\n/g, ``) .replace(/\n/g, ``)
.replace(`.tar${compressionSuffix}`, ''); .replace(`.tar${compressionSuffix}`, '');

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -127,8 +127,8 @@ export class Caching {
await fs.promises.mkdir(destinationFolder); await fs.promises.mkdir(destinationFolder);
} }
CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}"`)); // CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}"`));
CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$`)); // CloudRunnerLogger.log(await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$`));
const latestInBranch = await ( const latestInBranch = await (
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`) await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`)