Commit 791b98c5 authored by Paul Merlin's avatar Paul Merlin
Browse files

Merge branch 'master' into releases/v1

parents 27da3e28 466a737d
Loading
Loading
Loading
Loading
+6 −2
Changes for README.md: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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:

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.

If the defaults don't suit your needs you can override them with the following inputs:
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1
Changes for src/cache-wrapper.ts: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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)