mirror of
https://github.com/gradle/actions.git
synced 2025-04-20 17:59:19 +08:00
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()
|