mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 00:46:30 +00:00
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:
parent
e3499f610d
commit
6144f16631
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue