From 5a9dd3d0ea67559c65866857cbe65d8e83588134 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Thu, 11 Apr 2024 04:31:18 +0200 Subject: [PATCH] fix: skipped jobs have no result (#2276) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/runner/run_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 8027f79..ba4835b 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -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 }