diff --git a/src/cache-utils.ts b/src/cache-utils.ts index 50a6600..683452b 100644 --- a/src/cache-utils.ts +++ b/src/cache-utils.ts @@ -25,6 +25,9 @@ const CACHE_KEY_JOB_INSTANCE_VAR = 'GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE' const CACHE_KEY_JOB_EXECUTION_VAR = 'GRADLE_BUILD_ACTION_CACHE_KEY_JOB_EXECUTION' export function isCacheDisabled(): boolean { + if (!cache.isFeatureAvailable()) { + return true + } return core.getBooleanInput(CACHE_DISABLED_PARAMETER) }