diff --git a/modules/repository/init.go b/modules/repository/init.go index f9a33cd4f68c9..0b938742c2ceb 100644 --- a/modules/repository/init.go +++ b/modules/repository/init.go @@ -71,6 +71,10 @@ func LoadRepoConfig() { } for _, f := range customFiles { + ext := strings.ToLower(filepath.Ext(f)) + if ext == ".yaml" || ext == ".yml" { + f = f[:len(f)-len(ext)] + } if !util.SliceContainsString(files, f, true) { files = append(files, f) }