Merge branch 'master' into releases/v1

This commit is contained in:
Paul Merlin 2020-06-15 19:35:42 +02:00
commit 791b98c565
4 changed files with 9 additions and 4 deletions

View file

@ -147,11 +147,15 @@ Keep reading to learn how to better control how they work.
Both the dependencies and configuration caches use the same default configuration: Both the dependencies and configuration caches use the same default configuration:
They use the following inputs to calculate the cache key: They use the following inputs to calculate the cache key:
```text ```text
**/*.gradle
**/*.gradle.kts
**/gradle.properties
gradle/**
``` ```
This is a good enough approximation.
They restore cached state even if there isn't an exact match. They restore cached state even if there isn't an exact match.
If the defaults don't suit your needs you can override them with the following inputs: If the defaults don't suit your needs you can override them with the following inputs:

2
dist/main/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/post/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -30,6 +30,7 @@ export async function restoreCachedWrapperDist(
os.homedir(), os.homedir(),
`.gradle/wrapper/dists/gradle-${wrapperSlug}` `.gradle/wrapper/dists/gradle-${wrapperSlug}`
) )
if (fs.existsSync(wrapperCachePath)) return
core.saveState(WRAPPER_CACHE_KEY, wrapperCacheKey) core.saveState(WRAPPER_CACHE_KEY, wrapperCacheKey)
core.saveState(WRAPPER_CACHE_PATH, wrapperCachePath) core.saveState(WRAPPER_CACHE_PATH, wrapperCachePath)