aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Dachary2023-02-22 17:05:16 +0100
committerLoïc Dachary2023-03-12 23:29:04 +0100
commit3027fddbff35a852f944aef5656edfbd86eb5dbf (patch)
treec762927447ce2daf9daa1fd13b6bd86d50d9b29e
parent71c698a704d307c568f247710550d48f27cca4ce (diff)
[BRANDING] lookup .forgejo/workflows before .gitea/workflows
(cherry picked from commit ffe51fd72f384c4644b9329aa201ea80cd7ad7ad) (cherry picked from commit a2b483b67d4f3c1bb214312a35abc6d81a063cde) (cherry picked from commit 2b7d0bbde22830d4d631421613256001b6daecfb)
-rw-r--r--modules/actions/workflows.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/actions/workflows.go b/modules/actions/workflows.go
index 7f0e6e456..fcb989b64 100644
--- a/modules/actions/workflows.go
+++ b/modules/actions/workflows.go
@@ -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")
}