mirror of
https://github.com/gradle/actions.git
synced 2026-10-16 19:57:12 +08:00
Only restore wrapper cache if dir doesn't exist
This commit is contained in:
1 parent
eb7eb78d95
commit
466a737d16
3 files changed
+3
-2
No files matched your search
@@ -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