Custom step file support
parent
3737200c1b
commit
9b8f2383de
|
|
@ -4456,7 +4456,7 @@ class CloudRunnerCustomSteps {
|
|||
if (cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests) {
|
||||
cloud_runner_logger_1.default.log(`Parsing build steps: ${steps}`);
|
||||
}
|
||||
object = yaml_1.default.parse(steps);
|
||||
object = steps[0] === `-` ? yaml_1.default.parse(steps) : [yaml_1.default.parse(steps)];
|
||||
for (const step of object) {
|
||||
step.secrets = step.secrets.map((x) => {
|
||||
return {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,3 @@
|
|||
hook: after
|
||||
commands: |
|
||||
echo "after-build step test!"
|
||||
echo "after-build step test!"
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
hook: before
|
||||
commands: |
|
||||
echo "before-build step test!"
|
||||
echo "before-build step test!"
|
||||
|
|
@ -40,7 +40,7 @@ export class CloudRunnerCustomSteps {
|
|||
if (CloudRunner.buildParameters.cloudRunnerIntegrationTests) {
|
||||
CloudRunnerLogger.log(`Parsing build steps: ${steps}`);
|
||||
}
|
||||
object = YAML.parse(steps);
|
||||
object = steps[0] === `-` ? YAML.parse(steps) : [YAML.parse(steps)];
|
||||
for (const step of object) {
|
||||
step.secrets = step.secrets.map((x) => {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue