Add cache for project .gradle dir

- For now, this is limited to configuration-cache directory
This commit is contained in:
Daz DeBoer
2021-08-20 13:01:43 -06:00
parent c211be411e
commit 5340f6e816
6 changed files with 144 additions and 12 deletions

View File

@@ -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 {