From 530fa17534fc805e75acdd4a928637e7ce2f73c0 Mon Sep 17 00:00:00 2001 From: Horimatsu Takuya Date: Fri, 26 Feb 2021 01:55:07 +0900 Subject: [PATCH] #534 feat: step continues when continue-on-error is ture (#544) * feat: step continues when continue-on-error is ture * fix: typo, logging and make bool continuable Co-authored-by: Casey Lee --- act/runner/run_context.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/act/runner/run_context.go b/act/runner/run_context.go index 98619a40..9db747d1 100644 --- a/act/runner/run_context.go +++ b/act/runner/run_context.go @@ -225,7 +225,14 @@ func (rc *RunContext) newStepExecutor(step *model.Step) common.Executor { common.Logger(ctx).Infof(" \u2705 Success - %s", sc.Step) } else { common.Logger(ctx).Errorf(" \u274C Failure - %s", sc.Step) - rc.StepResults[rc.CurrentStep].Success = false + + if sc.Step.ContinueOnError { + common.Logger(ctx).Infof("Failed but continue next step") + err = nil + rc.StepResults[rc.CurrentStep].Success = true + } else { + rc.StepResults[rc.CurrentStep].Success = false + } } return err }