Disable caching when feature not available

This commit is contained in:
Daz DeBoer 2022-06-20 17:39:25 -06:00
parent 6594e9d359
commit ec939a8c10
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D

View file

@ -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)
}