Skip to content

Commit 52c3a7d

Browse files
Zettat123GiteaBot
andauthored
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>
1 parent 56c5d5e commit 52c3a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/actions/job_emitter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func checkJobsByRunID(ctx context.Context, runID int64) error {
114114
}
115115
}
116116
if runUpdated {
117-
NotifyWorkflowRunStatusUpdateWithReload(ctx, jobs[0])
117+
NotifyWorkflowRunStatusUpdateWithReload(ctx, js[0])
118118
}
119119
}
120120
return nil

0 commit comments

Comments
 (0)