From 518e23eca82dc826ef7ee1e27e15878dd8118bb3 Mon Sep 17 00:00:00 2001 From: lpusok <7979773+lpusok@users.noreply.github.com> Date: Thu, 29 Aug 2019 15:21:37 +0200 Subject: [PATCH] Try to copy step.yml first (#678) --- cli/run_util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/run_util.go b/cli/run_util.go index 975248be..469be135 100644 --- a/cli/run_util.go +++ b/cli/run_util.go @@ -684,13 +684,13 @@ func activateAndRunSteps( log.Debugln("stepAbsLocalPth:", stepAbsLocalPth, "|stepDir:", stepDir) - if err := command.CopyDir(stepAbsLocalPth, stepDir, true); err != nil { + if err := command.CopyFile(filepath.Join(stepAbsLocalPth, "step.yml"), stepYMLPth); err != nil { registerStepRunResults(stepmanModels.StepModel{}, stepInfoPtr, stepIdxPtr, "", models.StepRunStatusCodeFailed, 1, err, isLastStep, true) continue } - if err := command.CopyFile(filepath.Join(stepAbsLocalPth, "step.yml"), stepYMLPth); err != nil { + if err := command.CopyDir(stepAbsLocalPth, stepDir, true); err != nil { registerStepRunResults(stepmanModels.StepModel{}, stepInfoPtr, stepIdxPtr, "", models.StepRunStatusCodeFailed, 1, err, isLastStep, true) continue