Move ghes-sync into subfolder
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user