Skip to content

Commit 62f6872

Browse files
committed
Move ghes-sync into subfolder
1 parent 5802cb7 commit 62f6872

File tree

8 files changed

+6
-3
lines changed

8 files changed

+6
-3
lines changed

.github/workflows/sync_ghes.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
npm ci
2121
npx ts-node-script ./index.ts
22-
working-directory: ./script
22+
working-directory: ./script/sync-ghes
2323
- run: |
2424
git add -A
2525
git commit -m "Updating GHES workflows"

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
script/node_modules
1+
script/**/node_modules
File renamed without changes.

script/index.ts script/sync-ghes/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function checkWorkflows(
5151
}
5252

5353
/**
54-
* Check if a workflow only the given set of actions.
54+
* Check if a workflow uses only the given set of actions.
5555
*
5656
* @param workflowPath Path to workflow yaml file
5757
* @param enabledActions List of enabled actions
@@ -75,6 +75,9 @@ async function checkWorkflow(
7575
// Check if allowed action
7676
const [actionName, _] = step.uses.split("@");
7777
if (!enabledActionsSet.has(actionName.toLowerCase())) {
78+
console.info(
79+
`Workflow ${workflowPath} uses '${actionName}' which is not supported for GHES.`
80+
);
7881
return false;
7982
}
8083
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)