diff --git a/bundle/run/job.go b/bundle/run/job.go index fa48379d..976668e4 100644 --- a/bundle/run/job.go +++ b/bundle/run/job.go @@ -190,6 +190,10 @@ func (r *jobRunner) Run(ctx context.Context, opts *Options) error { if err != nil { return err } + if run.State.LifeCycleState == jobs.RunLifeCycleStateSkipped { + log.Infof(ctx, "Run was skipped!") + return fmt.Errorf("run skipped: %s", run.State.StateMessage) + } switch run.State.ResultState { // The run was canceled at user request.