Fixing creator check

This commit is contained in:
Anurag Chauhan
2022-05-02 13:22:36 +00:00
committed by GitHub
parent c032ee101f
commit 74122beced
+1 -1
View File
@@ -116,7 +116,7 @@ async function checkWorkflow(workflowPath: string, propertiesPath: string, allow
}
}
if(path.toLowerCase() == 'deployment' && !properties.creator) {
if(basename(path).toLowerCase() == 'deployments' && !properties.creator) {
workflowErrors.errors.push(`The "creator" in properties.json must be present.`)
}
} catch (e) {