Use Node script to remove CodeQL cross-platform
This commit is contained in:
parent
bc68dc9d95
commit
af8e2bc4a1
4 changed files with 28 additions and 8 deletions
|
|
@ -11,8 +11,13 @@ env:
|
|||
CODEQL_ACTION_FORCE_ZSTD_FAILURE: true
|
||||
steps:
|
||||
- name: Remove CodeQL from toolcache
|
||||
run: |
|
||||
rm -rf $RUNNER_TOOL_CACHE/CodeQL
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
||||
fs.rmdirSync(codeqlPath, { recursive: true });
|
||||
- id: init
|
||||
uses: ./../action/init
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -10,8 +10,13 @@ env:
|
|||
CODEQL_ACTION_ZSTD_BUNDLE: true
|
||||
steps:
|
||||
- name: Remove CodeQL from toolcache
|
||||
run: |
|
||||
rm -rf $RUNNER_TOOL_CACHE/CodeQL
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
||||
fs.rmdirSync(codeqlPath, { recursive: true });
|
||||
- id: init
|
||||
uses: ./../action/init
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue