Only restore wrapper cache if dir doesn't exist

This commit is contained in:
Paul Merlin committed 2020-06-15 19:33:04 +02:00
1 parent eb7eb78d95
commit 466a737d16
3 files changed
+3 -2

No files matched your search

+1
View File
@@ -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)