Fix wrong workflow status when rerun a job in an already finished workflow (#26119)
Before:  After:  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.
This commit is contained in:
parent
6598d0291c
commit
d817b199ca
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ func aggregateJobStatus(jobs []*ActionRunJob) Status {
|
|||
if !job.Status.IsDone() {
|
||||
allDone = false
|
||||
}
|
||||
if job.Status != StatusWaiting {
|
||||
if job.Status != StatusWaiting && !job.Status.IsDone() {
|
||||
allWaiting = false
|
||||
}
|
||||
if job.Status == StatusFailure || job.Status == StatusCancelled {
|
||||
|
|
Loading…
Reference in a new issue