Skip to content

Commit

Permalink
Conditionally clear runner cache
Browse files Browse the repository at this point in the history
This allows runners that don't have the cache to run these workflows.
  • Loading branch information
jsoref authored and github-actions[bot] committed Nov 4, 2024
1 parent b857595 commit 2ec63d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/__zstd-bundle-streaming.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .github/workflows/__zstd-bundle.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pr-checks/checks/zstd-bundle-streaming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ steps:
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:
Expand Down
4 changes: 3 additions & 1 deletion pr-checks/checks/zstd-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ steps:
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:
Expand Down

0 comments on commit 2ec63d2

Please sign in to comment.