mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-08-08 01:35:03 +02:00
* feat: step continues when continue-on-error is ture * fix: typo, logging and make bool continuable Co-authored-by: Casey Lee <[email protected]>
This commit is contained in:
co-authored by
Casey Lee
parent
14c06ee5e4
commit
6c118fe9ad
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user