0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-07 10:01:08 +01:00
Zettat123 04b6f90889
Fix actions rerun bug (#35783) (#35784)
Backport #35783

Fix #35780, fix #35782 

Rerunning a job or a run is only allowed when the job is done and the
run is done.

Related PR: #34970


98ff7d0773/routers/web/repo/actions/view.go (L239)

We don't need to check run status again in `rerunJob` because the run
status has been changed before `rerunJob`.

---

In fact, the bug described in the above issues will not occur on the
main branch. Because `getRunJobs` is called before updating the run.


98ff7d0773/routers/web/repo/actions/view.go (L425-L435)

So the run status that `rerunJob` checks is the old status.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-30 09:31:42 +01:00
..
2025-01-09 15:15:47 +08:00
2025-03-10 17:36:02 +08:00
2025-03-10 17:36:02 +08:00
2025-03-10 17:36:02 +08:00