Fix workflow run event status while rerunning a failed job (#35689) (#35703)

The event reported a completion status instead of requested, therefore
sent an email

Backport #35689
This commit is contained in:
ChristopherHX
2025-10-19 19:49:20 +02:00
committed by GitHub
parent 4af1d58c86
commit 46f695ac65
2 changed files with 12 additions and 2 deletions

View File

@@ -425,7 +425,8 @@ func Rerun(ctx *context_module.Context) {
run.PreviousDuration = run.Duration()
run.Started = 0
run.Stopped = 0
if err := actions_model.UpdateRun(ctx, run, "started", "stopped", "previous_duration"); err != nil {
run.Status = actions_model.StatusWaiting
if err := actions_model.UpdateRun(ctx, run, "started", "stopped", "status", "previous_duration"); err != nil {
ctx.ServerError("UpdateRun", err)
return
}