Skip to content

Commit ae5363f

Browse files
committed
fix
1 parent 763938e commit ae5363f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

routers/web/repo/actions/view.go

+6
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@ func Rerun(ctx *context_module.Context) {
270270
ctx.Error(http.StatusInternalServerError, err.Error())
271271
return
272272
}
273+
run.Started = 0
274+
run.Stopped = 0
275+
if err := actions_model.UpdateRun(ctx, run, "started", "stopped"); err != nil {
276+
ctx.Error(http.StatusInternalServerError, err.Error())
277+
return
278+
}
273279

274280
// can not rerun job when workflow is disabled
275281
cfgUnit := ctx.Repo.Repository.MustGetUnit(ctx, unit.TypeActions)

0 commit comments

Comments
 (0)