Move ghes-sync into subfolder
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
npx ts-node-script ./index.ts
|
npx ts-node-script ./index.ts
|
||||||
working-directory: ./script
|
working-directory: ./script/sync-ghes
|
||||||
- run: |
|
- run: |
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Updating GHES workflows"
|
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 workflowPath Path to workflow yaml file
|
||||||
* @param enabledActions List of enabled actions
|
* @param enabledActions List of enabled actions
|
||||||
@@ -75,6 +75,9 @@ async function checkWorkflow(
|
|||||||
// Check if allowed action
|
// Check if allowed action
|
||||||
const [actionName, _] = step.uses.split("@");
|
const [actionName, _] = step.uses.split("@");
|
||||||
if (!enabledActionsSet.has(actionName.toLowerCase())) {
|
if (!enabledActionsSet.has(actionName.toLowerCase())) {
|
||||||
|
console.info(
|
||||||
|
`Workflow ${workflowPath} uses '${actionName}' which is not supported for GHES.`
|
||||||
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user