mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-25 17:51:02 -05:00
Refine dependencies caching
This commit is contained in:
parent
053762c1c1
commit
317ca35dca
3 changed files with 10 additions and 2 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -40,7 +40,15 @@ export async function restoreCachedDependencies(
|
||||||
cacheKey,
|
cacheKey,
|
||||||
inputCacheExact ? [] : [cacheKeyPrefix]
|
inputCacheExact ? [] : [cacheKeyPrefix]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (!cacheResult) {
|
||||||
|
core.info('Dependencies cache not found, expect dependencies download.')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
core.saveState(DEPENDENCIES_CACHE_RESULT, cacheResult)
|
core.saveState(DEPENDENCIES_CACHE_RESULT, cacheResult)
|
||||||
|
core.info(`Dependencies restored from cache key: ${cacheResult}`)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function cacheDependencies(): Promise<void> {
|
export async function cacheDependencies(): Promise<void> {
|
||||||
|
|
Loading…
Reference in a new issue