[bot] Update dist directory

This commit is contained in:
bigdaz
2024-07-21 20:20:49 +00:00
committed by github-actions[bot]
parent 7bb45b1dbd
commit 561dcd8516
10 changed files with 75 additions and 60 deletions

View File

@@ -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].`);
}