Skip to content

Commit 12493ff

Browse files
committed
fix tmpl call
1 parent 5524878 commit 12493ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/web/repo/actions/actions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ func List(ctx *context.Context) {
7171
ctx.ServerError("GetBranchCommit", err)
7272
return
7373
}
74-
prepareWorkflowDispatchTemplate(ctx, commit)
74+
workflows := prepareWorkflowDispatchTemplate(ctx, commit)
75+
prepareWorkflowList(ctx, workflows)
7576
ctx.HTML(http.StatusOK, tplListActions)
7677
}
7778

@@ -97,8 +98,7 @@ func WorkflowDispatchInputs(ctx *context.Context) {
9798
ctx.ServerError("GetTagCommit/GetBranchCommit", err)
9899
return
99100
}
100-
workflows := prepareWorkflowDispatchTemplate(ctx, commit)
101-
prepareWorkflowList(ctx, workflows)
101+
prepareWorkflowDispatchTemplate(ctx, commit)
102102
ctx.HTML(http.StatusOK, tplDispatchInputsActions)
103103
}
104104

0 commit comments

Comments
 (0)