actions/src/post.ts
Daz DeBoer 5340f6e816
Add cache for project .gradle dir
- For now, this is limited to configuration-cache directory
2021-08-24 12:52:51 -06:00

17 lines
309 B
TypeScript

import * as core from '@actions/core'
import * as caches from './caches'
// Invoked by GitHub Actions
export async function run(): Promise<void> {
if (isCacheReadOnly()) return
await caches.save()
}
function isCacheReadOnly(): boolean {
return core.getBooleanInput('cache-read-only')
}
run()