diff --git a/modules/actions/workflows.go b/modules/actions/workflows.go index 2604788d4468..d560b7718f27 100644 --- a/modules/actions/workflows.go +++ b/modules/actions/workflows.go @@ -29,7 +29,7 @@ func init() { } } -func IsWorkFlow(path string) bool { +func IsWorkflow(path string) bool { if (!strings.HasSuffix(path, ".yaml")) && (!strings.HasSuffix(path, ".yml")) { return false } diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go index 00f17f0594b0..45e50cc3cbc0 100644 --- a/routers/web/repo/view.go +++ b/routers/web/repo/view.go @@ -351,7 +351,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st if issueConfigErr != nil { ctx.Data["FileError"] = strings.TrimSpace(issueConfigErr.Error()) } - } else if actions.IsWorkFlow(ctx.Repo.TreePath) { + } else if actions.IsWorkflow(ctx.Repo.TreePath) { content, err := actions.GetContentFromEntry(entry) if err != nil { log.Error("actions.GetContentFromEntry: %v", err)