mirror of
https://github.com/go-gitea/gitea
synced 2026-02-03 11:10:40 +00:00
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>
This commit is contained in:
@@ -114,7 +114,7 @@ func checkJobsByRunID(ctx context.Context, runID int64) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if runUpdated {
|
if runUpdated {
|
||||||
NotifyWorkflowRunStatusUpdateWithReload(ctx, jobs[0])
|
NotifyWorkflowRunStatusUpdateWithReload(ctx, js[0])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user