Skip to content

Commit 626d8b9

Browse files
henrymercerCopilot
andcommitted
Use toolcache.ts in per-language-bundle-validation.yml
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 922e2ff commit 626d8b9

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

‎.github/workflows/__per-language-bundle-validation.yml‎

Lines changed: 12 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pr-checks/checks/per-language-bundle-validation.yml‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,12 @@ matrix:
4040
os: macos-latest-xlarge
4141
version: linked
4242
build-mode: autobuild
43+
installNode: true
4344
steps:
4445
- name: Remove CodeQL from toolcache
45-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
46-
with:
47-
script: |
48-
const fs = require('fs');
49-
const path = require('path');
50-
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
51-
fs.rmdirSync(codeqlPath, { recursive: true });
46+
run: |
47+
cd ./../action
48+
npx tsx ./pr-checks/toolcache.ts clear
5249
- uses: ./../action/init
5350
id: init
5451
with:

0 commit comments

Comments
 (0)