mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
[bot] Update dist directory
This commit is contained in:
committed by
github-actions[bot]
parent
7bb45b1dbd
commit
561dcd8516
9
dist/wrapper-validation/main/index.js
vendored
9
dist/wrapper-validation/main/index.js
vendored
@@ -90071,6 +90071,11 @@ class CacheConfig {
|
||||
return false;
|
||||
}
|
||||
getCacheCleanupOption() {
|
||||
const legacyVal = getOptionalBooleanInput('gradle-home-cache-cleanup');
|
||||
if (legacyVal !== undefined) {
|
||||
deprecator.recordDeprecation('The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`');
|
||||
return legacyVal ? CacheCleanupOption.Always : CacheCleanupOption.Never;
|
||||
}
|
||||
const val = core.getInput('cache-cleanup');
|
||||
switch (val.toLowerCase().trim()) {
|
||||
case 'always':
|
||||
@@ -90078,9 +90083,7 @@ class CacheConfig {
|
||||
case 'on-success':
|
||||
return CacheCleanupOption.OnSuccess;
|
||||
case 'never':
|
||||
return getBooleanInput('gradle-home-cache-cleanup')
|
||||
? CacheCleanupOption.Always
|
||||
: CacheCleanupOption.Never;
|
||||
return CacheCleanupOption.Never;
|
||||
}
|
||||
throw TypeError(`The value '${val}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user