mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Refine dependencies caching
This commit is contained in:
		@@ -40,7 +40,15 @@ export async function restoreCachedDependencies(
 | 
			
		||||
        cacheKey,
 | 
			
		||||
        inputCacheExact ? [] : [cacheKeyPrefix]
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    if (!cacheResult) {
 | 
			
		||||
        core.info('Dependencies cache not found, expect dependencies download.')
 | 
			
		||||
        return
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    core.saveState(DEPENDENCIES_CACHE_RESULT, cacheResult)
 | 
			
		||||
    core.info(`Dependencies restored from cache key: ${cacheResult}`)
 | 
			
		||||
    return
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export async function cacheDependencies(): Promise<void> {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user