Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 committed Dec 6, 2023
1 parent 763938e commit ae5363f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routers/web/repo/actions/view.go
Expand Up @@ -270,6 +270,12 @@ func Rerun(ctx *context_module.Context) {
ctx.Error(http.StatusInternalServerError, err.Error())
return
}
run.Started = 0
run.Stopped = 0
if err := actions_model.UpdateRun(ctx, run, "started", "stopped"); err != nil {
ctx.Error(http.StatusInternalServerError, err.Error())
return
}

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

0 comments on commit ae5363f

Please sign in to comment.