mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-11-04 09:58:56 +08:00
Cache downloaded Java Toolchains
Due to limitations with the way extracted entries are defined, a separate entry is defined for *nix and windows. Fixes #33
This commit is contained in:
@@ -229,7 +229,8 @@ export class GradleUserHomeCache extends AbstractCache {
|
||||
}
|
||||
|
||||
private isBundlePattern(pattern: string): boolean {
|
||||
return pattern.endsWith('*')
|
||||
// If pattern ends with `/*`, then we cache as a "bundle": all of the matching files in a single cache entry
|
||||
return pattern.endsWith(`${path.sep}*`)
|
||||
}
|
||||
|
||||
private async collectCacheResults(processes: Promise<ExtractedCacheEntry>[]): Promise<ExtractedCacheEntry[]> {
|
||||
|
||||
Reference in New Issue
Block a user