mirror of
https://github.com/gradle/actions.git
synced 2026-07-28 07:04:32 +02:00
Cache Gradle distributions downloaded for a particular version (#58)
- Cache is separate from (but similar to) the wrapper distribution cache - New 'distributions-cache-enabled' flag controls caching of all downloaded distributions (including wrapper distributions) - Deprecated the 'wrapper-cache-enabled' flag for removal in v2
This commit is contained in:
+10
-1
@@ -107,7 +107,16 @@ export function extractGradleWrapperSlugFromDistUri(
|
||||
}
|
||||
|
||||
function isWrapperCacheDisabled(): boolean {
|
||||
return !github.inputBoolean('wrapper-cache-enabled', true)
|
||||
// Check if either 'distributions' or 'wrapper' cache has been disabled
|
||||
const wrapperCacheEnabled = github.inputBoolean(
|
||||
'wrapper-cache-enabled',
|
||||
true
|
||||
)
|
||||
const distributionsCacheEnabled = github.inputBoolean(
|
||||
'distributions-cache-enabled',
|
||||
true
|
||||
)
|
||||
return !wrapperCacheEnabled || !distributionsCacheEnabled
|
||||
}
|
||||
|
||||
function getCacheKey(wrapperSlug: string): string {
|
||||
|
||||
Reference in New Issue
Block a user