mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 17:50:07 +08:00
Conditionally clear runner cache
This allows runners that don't have the cache to run these workflows.
This commit is contained in:
4
.github/workflows/__zstd-bundle-streaming.yml
generated
vendored
4
.github/workflows/__zstd-bundle-streaming.yml
generated
vendored
@@ -59,7 +59,9 @@ jobs:
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
||||
fs.rmdirSync(codeqlPath, { recursive: true });
|
||||
if (codeqlPath !== undefined) {
|
||||
fs.rmdirSync(codeqlPath, { recursive: true });
|
||||
}
|
||||
- id: init
|
||||
uses: ./../action/init
|
||||
with:
|
||||
|
||||
4
.github/workflows/__zstd-bundle.yml
generated
vendored
4
.github/workflows/__zstd-bundle.yml
generated
vendored
@@ -61,7 +61,9 @@ jobs:
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
||||
fs.rmdirSync(codeqlPath, { recursive: true });
|
||||
if (codeqlPath !== undefined) {
|
||||
fs.rmdirSync(codeqlPath, { recursive: true });
|
||||
}
|
||||
- id: init
|
||||
uses: ./../action/init
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user