Skip to content

Commit

Permalink
fix: fail TestWorkflow's shell command on error (#5237)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Mar 22, 2024
1 parent 9efb491 commit 6088d5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func ProcessShellCommand(_ InternalProcessor, layer Intermediate, container Cont
if step.Shell == "" {
return nil, nil
}
shell := container.CreateChild().SetCommand(defaultShell).SetArgs("-c", step.Shell)
shell := container.CreateChild().SetCommand(defaultShell).SetArgs("-c", "set -e\n"+step.Shell)
stage := NewContainerStage(layer.NextRef(), shell)
stage.SetCategory("Run shell command")
stage.SetRetryPolicy(step.Retry)
Expand Down

0 comments on commit 6088d5b

Please sign in to comment.