only run ghes sync checks on YML files

This commit is contained in:
Nick Fyson
2021-09-08 10:08:06 +01:00
parent e6aff964db
commit 7aa1944311
+1 -1
View File
@@ -45,7 +45,7 @@ async function checkWorkflows(
});
for (const e of dir) {
if (e.isFile()) {
if (e.isFile() && extname(e.name) === ".yml") {
const workflowFilePath = join(folder, e.name);
const workflowId = basename(e.name, extname(e.name));
const workflowProperties: WorkflowProperties = require(join(