check for yml and yaml extensions

This commit is contained in:
Nick Fyson
2021-09-28 09:37:43 +01:00
parent 9426610033
commit 70655750b2
+1 -1
View File
@@ -49,7 +49,7 @@ async function checkWorkflows(folders: string[]): Promise<WorkflowWithErrors[]>
});
for (const e of dir) {
if (e.isFile() && extname(e.name) === ".yml") {
if (e.isFile() && [".yml", ".yaml"].includes(extname(e.name))) {
const fileType = basename(e.name, extname(e.name))
const workflowFilePath = join(folder, e.name);