Skip to content

Commit af8e2bc

Browse files
committed
Use Node script to remove CodeQL cross-platform
1 parent bc68dc9 commit af8e2bc

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

.github/workflows/__zstd-bundle-fallback.yml

+7-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__zstd-bundle.yml

+7-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/zstd-bundle-fallback.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ env:
1111
CODEQL_ACTION_FORCE_ZSTD_FAILURE: true
1212
steps:
1313
- name: Remove CodeQL from toolcache
14-
run: |
15-
rm -rf $RUNNER_TOOL_CACHE/CodeQL
14+
uses: actions/github-script@v7
15+
with:
16+
script: |
17+
const fs = require('fs');
18+
const path = require('path');
19+
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
20+
fs.rmdirSync(codeqlPath, { recursive: true });
1621
- id: init
1722
uses: ./../action/init
1823
with:

pr-checks/checks/zstd-bundle.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ env:
1010
CODEQL_ACTION_ZSTD_BUNDLE: true
1111
steps:
1212
- name: Remove CodeQL from toolcache
13-
run: |
14-
rm -rf $RUNNER_TOOL_CACHE/CodeQL
13+
uses: actions/github-script@v7
14+
with:
15+
script: |
16+
const fs = require('fs');
17+
const path = require('path');
18+
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
19+
fs.rmdirSync(codeqlPath, { recursive: true });
1520
- id: init
1621
uses: ./../action/init
1722
with:

0 commit comments

Comments
 (0)