mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-10-23 18:38:56 +08:00
Add cache for project .gradle dir
- For now, this is limited to configuration-cache directory
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user