@@ -460,7 +460,7 @@ func rerunJob(ctx *context_module.Context, job *actions_model.ActionRunJob, shou
460460
461461 actions_service .CreateCommitStatus (ctx , job )
462462 _ = job .LoadAttributes (ctx )
463- notifier .CreateWorkflowJob (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
463+ notifier .WorkflowJobStatusUpdate (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
464464
465465 return nil
466466}
@@ -559,7 +559,7 @@ func Cancel(ctx *context_module.Context) {
559559
560560 for _ , job := range updatedjobs {
561561 _ = job .LoadAttributes (ctx )
562- notifier .CreateWorkflowJob (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
562+ notifier .WorkflowJobStatusUpdate (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
563563 }
564564
565565 ctx .JSON (http .StatusOK , struct {}{})
@@ -605,7 +605,7 @@ func Approve(ctx *context_module.Context) {
605605
606606 for _ , job := range updatedjobs {
607607 _ = job .LoadAttributes (ctx )
608- notifier .CreateWorkflowJob (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
608+ notifier .WorkflowJobStatusUpdate (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
609609 }
610610
611611 ctx .JSON (http .StatusOK , struct {}{})
0 commit comments