Remove unsupported pipeline file extension "yaml" (#373)

Docs, `sanitizePath` and json-schema do not mention / support `.yaml` (only `.yml`) files so they should simply be ignored.
This commit is contained in:
Anbraten 2021-09-28 14:07:25 +02:00 committed by GitHub
parent e3499f610d
commit 6144f16631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ func filterPipelineFiles(files []*remote.FileMeta) []*remote.FileMeta {
var res []*remote.FileMeta
for _, file := range files {
if strings.HasSuffix(file.Name, ".yml") || strings.HasSuffix(file.Name, ".yaml") {
if strings.HasSuffix(file.Name, ".yml") {
res = append(res, file)
}
}