From 1a2e85020aa8c7370a70c3d424b56693a0834956 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Tue, 4 Nov 2025 00:03:57 +0100 Subject: [PATCH] lint --- models/actions/run.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/actions/run.go b/models/actions/run.go index dadfe1c8ca..f06cb87b23 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -315,7 +315,9 @@ func CancelJobs(ctx context.Context, jobs []*ActionRunJob) ([]*ActionRunJob, err } for runID, job := range runsToUpdate { - UpdateRunStatus(ctx, job.RepoID, runID) + if err := UpdateRunStatus(ctx, job.RepoID, runID); err != nil { + return cancelledJobs, err + } } // Return nil to indicate successful cancellation of all running and waiting jobs.