mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 14:06:15 +01:00
Backport #26119 by @yp05327
Before:
![image](https://github.com/go-gitea/gitea/assets/18380374/fb687592-b117-4cd5-b076-2ca5ca847ea4)
After:
![image](https://github.com/go-gitea/gitea/assets/18380374/c9b0683e-e81d-410b-8c35-fbe54327fab4)
After workflow finished, if you rerun a single job, the workflow status
will become to `Running` which is not correct as no jobs are running in
this workflow.
Co-authored-by: yp05327 <576951401@qq.com>
(cherry picked from commit 08cdc0da3d
)
This commit is contained in:
parent
9fae415030
commit
e2101ae572
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ func aggregateJobStatus(jobs []*ActionRunJob) Status {
|
||||||
if !job.Status.IsDone() {
|
if !job.Status.IsDone() {
|
||||||
allDone = false
|
allDone = false
|
||||||
}
|
}
|
||||||
if job.Status != StatusWaiting {
|
if job.Status != StatusWaiting && !job.Status.IsDone() {
|
||||||
allWaiting = false
|
allWaiting = false
|
||||||
}
|
}
|
||||||
if job.Status == StatusFailure || job.Status == StatusCancelled {
|
if job.Status == StatusFailure || job.Status == StatusCancelled {
|
||||||
|
|
Loading…
Reference in a new issue