Skip to content

Commit 3074f52

Browse files
committed
fix
1 parent 763938e commit 3074f52

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

routers/web/repo/actions/view.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,14 @@ func Rerun(ctx *context_module.Context) {
279279
return
280280
}
281281

282+
// reset run's start and stop time
283+
run.Started = 0
284+
run.Stopped = 0
285+
if err := actions_model.UpdateRun(ctx, run, "started", "stopped"); err != nil {
286+
ctx.Error(http.StatusInternalServerError, err.Error())
287+
return
288+
}
289+
282290
job, jobs := getRunJobs(ctx, runIndex, jobIndex)
283291
if ctx.Written() {
284292
return

0 commit comments

Comments
 (0)