shorter names

pull/524/head
Frostebite 2023-03-19 22:20:48 +00:00
parent d339387d5e
commit 6909d78c11
5 changed files with 15 additions and 15 deletions

8
dist/index.js vendored
View File

@ -303,7 +303,7 @@ class BuildParameters {
asyncWorkflow: cloud_runner_options_1.default.asyncCloudRunner, asyncWorkflow: cloud_runner_options_1.default.asyncCloudRunner,
githubCheckId: cloud_runner_options_1.default.githubCheckId, githubCheckId: cloud_runner_options_1.default.githubCheckId,
finalHooks: cloud_runner_options_1.default.finalHooks, finalHooks: cloud_runner_options_1.default.finalHooks,
skipLFS: cloud_runner_options_1.default.skipLFS, skipLFS: cloud_runner_options_1.default.skipLfs,
skipCache: cloud_runner_options_1.default.skipCache, skipCache: cloud_runner_options_1.default.skipCache,
cacheUnityInstallationOnMac: input_1.default.cacheUnityInstallationOnMac, cacheUnityInstallationOnMac: input_1.default.cacheUnityInstallationOnMac,
unityHubVersionOnMac: input_1.default.unityHubVersionOnMac, unityHubVersionOnMac: input_1.default.unityHubVersionOnMac,
@ -884,8 +884,8 @@ class CloudRunnerOptions {
CloudRunnerOptions.getInput(`cloudRunnerDebugEnv`) === `true` || CloudRunnerOptions.getInput(`cloudRunnerDebugEnv`) === `true` ||
false); false);
} }
static get skipLFS() { static get skipLfs() {
return CloudRunnerOptions.getInput(`skipLFS`) === `true` || false; return CloudRunnerOptions.getInput(`skipLfs`) === `true` || false;
} }
static get skipCache() { static get skipCache() {
return CloudRunnerOptions.getInput(`skipCache`) === `true` || false; return CloudRunnerOptions.getInput(`skipCache`) === `true` || false;
@ -5837,12 +5837,12 @@ class CustomWorkflow {
} }
static async runCustomJob(buildSteps, environmentVariables, secrets) { static async runCustomJob(buildSteps, environmentVariables, secrets) {
try { try {
cloud_runner_logger_1.default.log(`Cloud Runner is running in custom job mode Secrets Count:${JSON.stringify(secrets, undefined, 4)} Env Var Count:${JSON.stringify(environmentVariables, undefined, 4)}`);
let output = ''; let output = '';
// if (CloudRunner.buildParameters?.cloudRunnerDebug) { // if (CloudRunner.buildParameters?.cloudRunnerDebug) {
// CloudRunnerLogger.log(`Custom Job Description \n${JSON.stringify(buildSteps, undefined, 4)}`); // CloudRunnerLogger.log(`Custom Job Description \n${JSON.stringify(buildSteps, undefined, 4)}`);
// } // }
for (const step of buildSteps) { for (const step of buildSteps) {
cloud_runner_logger_1.default.log(`Cloud Runner is running in custom job mode Secrets Count:${JSON.stringify([...secrets, ...step.secrets], undefined, 4)} Env Var Count:${JSON.stringify(environmentVariables, undefined, 4)}`);
output += await cloud_runner_1.default.Provider.runTaskInWorkflow(cloud_runner_1.default.buildParameters.buildGuid, step.image, step.commands, `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}`, `/${cloud_runner_folders_1.CloudRunnerFolders.projectPathAbsolute}/`, environmentVariables, [...secrets, ...step.secrets]); output += await cloud_runner_1.default.Provider.runTaskInWorkflow(cloud_runner_1.default.buildParameters.buildGuid, step.image, step.commands, `/${cloud_runner_folders_1.CloudRunnerFolders.buildVolumeFolder}`, `/${cloud_runner_folders_1.CloudRunnerFolders.projectPathAbsolute}/`, environmentVariables, [...secrets, ...step.secrets]);
} }
return output; return output;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -182,7 +182,7 @@ class BuildParameters {
asyncWorkflow: CloudRunnerOptions.asyncCloudRunner, asyncWorkflow: CloudRunnerOptions.asyncCloudRunner,
githubCheckId: CloudRunnerOptions.githubCheckId, githubCheckId: CloudRunnerOptions.githubCheckId,
finalHooks: CloudRunnerOptions.finalHooks, finalHooks: CloudRunnerOptions.finalHooks,
skipLFS: CloudRunnerOptions.skipLFS, skipLFS: CloudRunnerOptions.skipLfs,
skipCache: CloudRunnerOptions.skipCache, skipCache: CloudRunnerOptions.skipCache,
cacheUnityInstallationOnMac: Input.cacheUnityInstallationOnMac, cacheUnityInstallationOnMac: Input.cacheUnityInstallationOnMac,
unityHubVersionOnMac: Input.unityHubVersionOnMac, unityHubVersionOnMac: Input.unityHubVersionOnMac,

View File

@ -246,8 +246,8 @@ class CloudRunnerOptions {
false false
); );
} }
static get skipLFS(): boolean { static get skipLfs(): boolean {
return CloudRunnerOptions.getInput(`skipLFS`) === `true` || false; return CloudRunnerOptions.getInput(`skipLfs`) === `true` || false;
} }
static get skipCache(): boolean { static get skipCache(): boolean {
return CloudRunnerOptions.getInput(`skipCache`) === `true` || false; return CloudRunnerOptions.getInput(`skipCache`) === `true` || false;

View File

@ -25,19 +25,19 @@ export class CustomWorkflow {
secrets: CloudRunnerSecret[], secrets: CloudRunnerSecret[],
) { ) {
try { try {
CloudRunnerLogger.log(
`Cloud Runner is running in custom job mode Secrets Count:${JSON.stringify(
secrets,
undefined,
4,
)} Env Var Count:${JSON.stringify(environmentVariables, undefined, 4)}`,
);
let output = ''; let output = '';
// if (CloudRunner.buildParameters?.cloudRunnerDebug) { // if (CloudRunner.buildParameters?.cloudRunnerDebug) {
// CloudRunnerLogger.log(`Custom Job Description \n${JSON.stringify(buildSteps, undefined, 4)}`); // CloudRunnerLogger.log(`Custom Job Description \n${JSON.stringify(buildSteps, undefined, 4)}`);
// } // }
for (const step of buildSteps) { for (const step of buildSteps) {
CloudRunnerLogger.log(
`Cloud Runner is running in custom job mode Secrets Count:${JSON.stringify(
[...secrets, ...step.secrets],
undefined,
4,
)} Env Var Count:${JSON.stringify(environmentVariables, undefined, 4)}`,
);
output += await CloudRunner.Provider.runTaskInWorkflow( output += await CloudRunner.Provider.runTaskInWorkflow(
CloudRunner.buildParameters.buildGuid, CloudRunner.buildParameters.buildGuid,
step.image, step.image,