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
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
run: |
npm ci
npx ts-node-script ./index.ts
working-directory: ./script
working-directory: ./script/sync-ghes
- run: |
git add -A
git commit -m "Updating GHES workflows"
+1 -1
View File
@@ -1 +1 @@
script/node_modules
script/**/node_modules
@@ -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;
}
}