mirror of
https://github.com/gradle/actions
synced 2026-07-03 22:32:49 +08:00
5340f6e816
- For now, this is limited to configuration-cache directory
17 lines
309 B
TypeScript
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()
|