tree cache push directory

pull/461/head
Frostebite 2022-09-18 23:47:51 +01:00
parent 73bad04ed6
commit 92a3302787
4 changed files with 7 additions and 5 deletions

5
dist/index.js vendored
View File

@ -3861,7 +3861,8 @@ class Caching {
}
const contents = yield fs_1.default.promises.readdir(path_1.default.basename(sourceFolder));
cloud_runner_logger_1.default.log(`There is ${contents.length} files/dir in the source folder ${path_1.default.basename(sourceFolder)}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree -L 3 ./..`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree -L 2 ./..`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`tree -L 2`);
if (contents.length === 0) {
cloud_runner_logger_1.default.log(`Did not push source folder to cache because it was empty ${path_1.default.basename(sourceFolder)}`);
process.chdir(`${startPath}`);
@ -4681,7 +4682,7 @@ class TaskParameterSerializer {
// eslint-disable-next-line unicorn/no-array-reduce
array.push(secrets.reduce((x, y) => [...x, ...y]));
}
const blocked = new Set(['0', 'length', 'prototype', '', 'projectPath', 'unityVersion']);
const blocked = new Set(['0', 'length', 'prototype', '', 'unityVersion']);
array = array.filter((x) => !blocked.has(x.name));
array = array.map((x) => {
x.name = __1.Input.ToEnvVarFormat(x.name);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -63,7 +63,8 @@ export class Caching {
CloudRunnerLogger.log(
`There is ${contents.length} files/dir in the source folder ${path.basename(sourceFolder)}`,
);
await CloudRunnerSystem.Run(`tree -L 3 ./..`);
await CloudRunnerSystem.Run(`tree -L 2 ./..`);
await CloudRunnerSystem.Run(`tree -L 2`);
if (contents.length === 0) {
CloudRunnerLogger.log(

View File

@ -38,7 +38,7 @@ export class TaskParameterSerializer {
array.push(secrets.reduce((x, y) => [...x, ...y]));
}
const blocked = new Set(['0', 'length', 'prototype', '', 'projectPath', 'unityVersion']);
const blocked = new Set(['0', 'length', 'prototype', '', 'unityVersion']);
array = array.filter((x) => !blocked.has(x.name));
array = array.map((x) => {