mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Only restore wrapper cache if dir doesn't exist
This commit is contained in:
		@@ -30,6 +30,7 @@ export async function restoreCachedWrapperDist(
 | 
			
		||||
        os.homedir(),
 | 
			
		||||
        `.gradle/wrapper/dists/gradle-${wrapperSlug}`
 | 
			
		||||
    )
 | 
			
		||||
    if (fs.existsSync(wrapperCachePath)) return
 | 
			
		||||
 | 
			
		||||
    core.saveState(WRAPPER_CACHE_KEY, wrapperCacheKey)
 | 
			
		||||
    core.saveState(WRAPPER_CACHE_PATH, wrapperCachePath)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user