Conditionally clear runner cache
This allows runners that don't have the cache to run these workflows.
This commit is contained in:
parent
688ea5370d
commit
3b7b85fbe8
4 changed files with 12 additions and 4 deletions
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 fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
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 fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@ steps:
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,9 @@ steps:
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
|
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
|
- id: init
|
||||||
uses: ./../action/init
|
uses: ./../action/init
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue