mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-12 21:16:14 +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
1 changed files with 4 additions and 1 deletions
|
@ -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