mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-27 16:06:19 +08:00
Merge branch 'master' into releases/v1
This commit is contained in:
commit
791b98c565
@ -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
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
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user