- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.2k
Fix actions rerun bug (#35783) #35784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix actions rerun bug (#35783) #35784
Conversation
Related issues: go-gitea#35780, go-gitea#35782 Rerunning a job or a run is only allowed when the job is done and the run is done. Related PR: go-gitea#34970
| I think we can say "this PR fixes ..." now 😆 | 
| Literally... 🤷 | 
| 
 Hope to release the patch successfully🧐 | 
| 
 I mean the bug doesn't really exist on main branch 😁 | 
| 
 As you said, I temporarily switched to the main-nightly tag to keep the system running normally. | 
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
gitea/routers/web/repo/actions/view.go
Line 239 in 98ff7d0
We don't need to check run status again in
rerunJobbecause the run status has been changed beforererunJob.In fact, the bug described in the above issues will not occur on the main branch. Because
getRunJobsis called before updating the run.gitea/routers/web/repo/actions/view.go
Lines 425 to 435 in 98ff7d0
So the run status that
rerunJobchecks is the old status.