Skip to content

Commit

Permalink
fix: skipped jobs have no result (#2276)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
ChristopherHX and mergify[bot] committed Apr 11, 2024
1 parent 89e3c14 commit 5a9dd3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/runner/run_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ func (rc *RunContext) isEnabled(ctx context.Context) (bool, error) {
}

if !runJob {
rc.result("skipped")
l.WithField("jobResult", "skipped").Debugf("Skipping job '%s' due to '%s'", job.Name, job.If.Value)
return false, nil
}
Expand Down

0 comments on commit 5a9dd3d

Please sign in to comment.