Skip to content

Commit 5a9dd3d

Browse files
fix: skipped jobs have no result (#2276)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 89e3c14 commit 5a9dd3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/runner/run_context.go

+1
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ func (rc *RunContext) isEnabled(ctx context.Context) (bool, error) {
697697
}
698698

699699
if !runJob {
700+
rc.result("skipped")
700701
l.WithField("jobResult", "skipped").Debugf("Skipping job '%s' due to '%s'", job.Name, job.If.Value)
701702
return false, nil
702703
}

0 commit comments

Comments
 (0)