Move ghes-sync into subfolder

This commit is contained in:
Christopher Schleiden
2020-05-20 10:00:39 -07:00
parent 5802cb7302
commit 62f6872b4e
8 changed files with 6 additions and 3 deletions
@@ -51,7 +51,7 @@ async function checkWorkflows(
}
/**
* Check if a workflow only the given set of actions.
* Check if a workflow uses only the given set of actions.
*
* @param workflowPath Path to workflow yaml file
* @param enabledActions List of enabled actions
@@ -75,6 +75,9 @@ async function checkWorkflow(
// Check if allowed action
const [actionName, _] = step.uses.split("@");
if (!enabledActionsSet.has(actionName.toLowerCase())) {
console.info(
`Workflow ${workflowPath} uses '${actionName}' which is not supported for GHES.`
);
return false;
}
}