mirror of
https://github.com/github/codeql-action.git
synced 2026-01-01 04:00:24 +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.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