Skip to content

Commit

Permalink
Merge pull request #1587 from appvia/step.FailureFile
Browse files Browse the repository at this point in the history
fail when there is a failure file
  • Loading branch information
lewismarshall authored Jan 16, 2025
2 parents c327b00 + 27de98a commit 6517b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/step/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func Run(ctx context.Context, step Step) error {

err := utils.RetryWithTimeout(ctx, step.Timeout, time.Second, func() (bool, error) {
if step.FailureFile != "" {
if found, _ := utils.FileExists(step.ErrorFile); found {
if found, _ := utils.FileExists(step.FailureFile); found {
return false, errors.New("found error signal file, refusing to execute")
}
}
Expand Down

0 comments on commit 6517b04

Please sign in to comment.