mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-07 16:56:12 +02:00
Add cache for project .gradle dir
- For now, this is limited to configuration-cache directory
This commit is contained in:
parent
c211be411e
commit
5340f6e816
6 changed files with 144 additions and 12 deletions
|
@ -1,12 +1,12 @@
|
|||
import * as core from '@actions/core'
|
||||
|
||||
import * as cacheGradleUserHome from './cache-gradle-user-home'
|
||||
import * as caches from './caches'
|
||||
|
||||
// Invoked by GitHub Actions
|
||||
export async function run(): Promise<void> {
|
||||
if (isCacheReadOnly()) return
|
||||
|
||||
await cacheGradleUserHome.save()
|
||||
await caches.save()
|
||||
}
|
||||
|
||||
function isCacheReadOnly(): boolean {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue