Custom step file support

pull/437/head
Frostebite 2022-10-08 01:20:34 +01:00
parent 893209cd4f
commit 088e2036de
3 changed files with 19 additions and 19 deletions

10
dist/index.js vendored
View File

@ -4457,11 +4457,6 @@ class CloudRunnerCustomSteps {
if (object === undefined) {
throw new Error(`Failed to parse ${steps}`);
}
}
catch (error) {
cloud_runner_logger_1.default.log(`failed to parse a custom job "${steps}"`);
throw error;
}
for (const step of object) {
step.secrets = step.secrets.map((x) => {
return {
@ -4471,6 +4466,11 @@ class CloudRunnerCustomSteps {
};
});
}
}
catch (error) {
cloud_runner_logger_1.default.log(`failed to parse a custom job "${steps}"`);
throw error;
}
return object;
}
static RunPostBuildSteps(cloudRunnerStepState) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -41,10 +41,6 @@ export class CloudRunnerCustomSteps {
if (object === undefined) {
throw new Error(`Failed to parse ${steps}`);
}
} catch (error) {
CloudRunnerLogger.log(`failed to parse a custom job "${steps}"`);
throw error;
}
for (const step of object) {
step.secrets = step.secrets.map((x) => {
return {
@ -54,6 +50,10 @@ export class CloudRunnerCustomSteps {
};
});
}
} catch (error) {
CloudRunnerLogger.log(`failed to parse a custom job "${steps}"`);
throw error;
}
return object;
}