Fix the runs will not be displayed bug when the main branch have no workflows but other branches have (#28359)
This commit is contained in:
parent
c81255ba4e
commit
09d5028442
2 changed files with 2 additions and 1 deletions
|
@ -200,6 +200,7 @@ func List(ctx *context.Context) {
|
|||
pager.AddParamString("actor", fmt.Sprint(actorID))
|
||||
pager.AddParamString("status", fmt.Sprint(status))
|
||||
ctx.Data["Page"] = pager
|
||||
ctx.Data["HasWorkflowsOrRuns"] = len(workflows) > 0 || len(runs) > 0
|
||||
|
||||
ctx.HTML(http.StatusOK, tplListActions)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue