Skip to content

Commit 2ec63d2

Browse files
jsorefgithub-actions[bot]
authored and
github-actions[bot]
committed
Conditionally clear runner cache
This allows runners that don't have the cache to run these workflows.
1 parent b857595 commit 2ec63d2

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/__zstd-bundle-streaming.yml

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__zstd-bundle.yml

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/zstd-bundle-streaming.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ steps:
1616
const fs = require('fs');
1717
const path = require('path');
1818
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
19-
fs.rmdirSync(codeqlPath, { recursive: true });
19+
if (codeqlPath !== undefined) {
20+
fs.rmdirSync(codeqlPath, { recursive: true });
21+
}
2022
- id: init
2123
uses: ./../action/init
2224
with:

pr-checks/checks/zstd-bundle.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ steps:
1616
const fs = require('fs');
1717
const path = require('path');
1818
const codeqlPath = path.join(process.env['RUNNER_TOOL_CACHE'], 'CodeQL');
19-
fs.rmdirSync(codeqlPath, { recursive: true });
19+
if (codeqlPath !== undefined) {
20+
fs.rmdirSync(codeqlPath, { recursive: true });
21+
}
2022
- id: init
2123
uses: ./../action/init
2224
with:

0 commit comments

Comments
 (0)