Skip to content

Commit 5e8ef6b

Browse files
Update modules/actions/workflows.go
Co-authored-by: wxiaoguang <[email protected]>
1 parent e027121 commit 5e8ef6b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/actions/workflows.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ func IsWorkFlow(path string) bool {
3434
return false
3535
}
3636

37-
if strings.HasPrefix(path, ".gitea/workflows") {
38-
return true
39-
}
40-
41-
return strings.HasPrefix(path, ".github/workflows")
37+
return strings.HasPrefix(path, ".gitea/workflows") || strings.HasPrefix(path, ".github/workflows")
4238
}
4339

4440
func ListWorkflows(commit *git.Commit) (git.Entries, error) {

0 commit comments

Comments
 (0)