Skip to content

Commit 711a320

Browse files
committed
fix: Fix cache toggle not working.
1 parent 7229efd commit 711a320

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@moonrepo/setup-rust",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "A GitHub action for setting up Rust and Cargo.",
55
"main": "dist/index.js",
66
"scripts": {

src/cargo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const CARGO_HOME = process.env.CARGO_HOME ?? path.join(os.homedir(), '.ca
1414

1515
export const WORKSPACE_ROOT = process.env.GITHUB_WORKSPACE ?? process.cwd();
1616

17-
export const CACHE_ENABLED = core.getBooleanInput('cache') || cache.isFeatureAvailable();
17+
export const CACHE_ENABLED = core.getBooleanInput('cache') && cache.isFeatureAvailable();
1818

1919
export async function downloadAndInstallBinstall(binDir: string) {
2020
core.info('cargo-binstall does not exist, attempting to install');

0 commit comments

Comments
 (0)