diff --git a/modules/actions/workflows.go b/modules/actions/workflows.go index d9459288b1..cb3e142be3 100644 --- a/modules/actions/workflows.go +++ b/modules/actions/workflows.go @@ -38,7 +38,10 @@ func IsWorkflow(path string) bool { } func ListWorkflows(commit *git.Commit) (git.Entries, error) { - tree, err := commit.SubTree(".gitea/workflows") + tree, err := commit.SubTree(".forgejo/workflows") + if _, ok := err.(git.ErrNotExist); ok { + tree, err = commit.SubTree(".gitea/workflows") + } if _, ok := err.(git.ErrNotExist); ok { tree, err = commit.SubTree(".github/workflows") }