Bugfix: Potential incorrect runID in run status update (#36437)

`jobs[0]` may not belong to the run for `runID`.

Co-authored-by: Giteabot <teabot@gitea.io>
pull/36440/head^2
Zettat123 2026-01-23 04:11:56 -07:00 committed by GitHub
parent 56c5d5e819
commit 52c3a7d3ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func checkJobsByRunID(ctx context.Context, runID int64) error {
}
}
if runUpdated {
NotifyWorkflowRunStatusUpdateWithReload(ctx, jobs[0])
NotifyWorkflowRunStatusUpdateWithReload(ctx, js[0])
}
}
return nil