mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 09:54:24 +01:00
Merge pull request '[BRANDING] lookup .forgejo/workflows before .gitea/workflows' (#417) from dachary/forgejo:wip-actions-directory into forgejo-branding
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/417
This commit is contained in:
commit
1b68f13281
|
@ -19,7 +19,10 @@ import (
|
|||
)
|
||||
|
||||
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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue