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
9
.github/workflows/__zstd-bundle-fallback.yml
generated
vendored
9
.github/workflows/__zstd-bundle-fallback.yml
generated
vendored
|
|
@ -60,8 +60,13 @@ jobs:
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
run: |
|
uses: actions/github-script@v7
|
||||||
rm -rf $RUNNER_TOOL_CACHE/CodeQL
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
9
.github/workflows/__zstd-bundle.yml
generated
vendored
9
.github/workflows/__zstd-bundle.yml
generated
vendored
|
|
@ -60,8 +60,13 @@ jobs:
|
||||||
use-all-platform-bundle: 'false'
|
use-all-platform-bundle: 'false'
|
||||||
setup-kotlin: 'true'
|
setup-kotlin: 'true'
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
run: |
|
uses: actions/github-script@v7
|
||||||
rm -rf $RUNNER_TOOL_CACHE/CodeQL
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,13 @@ env:
|
||||||
CODEQL_ACTION_FORCE_ZSTD_FAILURE: true
|
CODEQL_ACTION_FORCE_ZSTD_FAILURE: true
|
||||||
steps:
|
steps:
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
run: |
|
uses: actions/github-script@v7
|
||||||
rm -rf $RUNNER_TOOL_CACHE/CodeQL
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,13 @@ env:
|
||||||
CODEQL_ACTION_ZSTD_BUNDLE: true
|
CODEQL_ACTION_ZSTD_BUNDLE: true
|
||||||
steps:
|
steps:
|
||||||
- name: Remove CodeQL from toolcache
|
- name: Remove CodeQL from toolcache
|
||||||
run: |
|
uses: actions/github-script@v7
|
||||||
rm -rf $RUNNER_TOOL_CACHE/CodeQL
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue