Use Node script to remove CodeQL cross-platform

This commit is contained in:
Henry Mercer
2024-09-24 17:43:32 +01:00
parent bc68dc9d95
commit af8e2bc4a1
4 changed files with 28 additions and 8 deletions

View File

@@ -60,8 +60,13 @@ jobs:
use-all-platform-bundle: 'false'
setup-kotlin: 'true'
- 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: