Skip to content

Commit 338655c

Browse files
authored
Fix workflow to sync CodeQL CLI (#55425)
1 parent 023b1cf commit 338655c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/sync-codeql-cli.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
6868
- name: Sync the CodeQL CLI data
6969
run: |
70-
src/codeql-cli/scripts/sync.js
70+
npm run sync-codeql-cli
7171
git status
7272
echo "Deleting the cloned github/semmle-code repo..."
7373
rm -rf semmle-code
@@ -81,7 +81,7 @@ jobs:
8181
changes=$(git diff --name-only | wc -l)
8282
untracked=$(git status --untracked-files --short | wc -l)
8383
if [[ $changes -eq 0 ]] && [[ $untracked -eq 0 ]]; then
84-
echo "There are no changes to commit after running src/codeql/scripts/sync.js. Exiting..."
84+
echo "There are no changes to commit after running 'npm run sync-codeql-cli'. Exiting..."
8585
exit 0
8686
fi
8787

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"start-for-playwright": "cross-env ROOT=src/fixtures/fixtures TRANSLATIONS_FIXTURE_ROOT=src/fixtures/fixtures/translations ENABLED_LANGUAGES=en,ja NODE_ENV=test tsx src/frame/server.ts",
8787
"symlink-from-local-repo": "tsx src/early-access/scripts/symlink-from-local-repo.js",
8888
"sync-audit-log": "tsx src/audit-logs/scripts/sync.ts",
89+
"sync-codeql-cli": "tsx src/codeql-cli/scripts/sync.js",
8990
"sync-graphql": "tsx src/graphql/scripts/sync.js",
9091
"sync-rest": "tsx src/rest/scripts/update-files.ts",
9192
"sync-secret-scanning": "tsx src/secret-scanning/scripts/sync.ts",

0 commit comments

Comments
 (0)