2021-09-14 05:33:50 -06:00
|
|
|
import * as core from '@actions/core'
|
2021-08-20 13:01:43 -06:00
|
|
|
import * as caches from './caches'
|
2020-06-13 13:34:07 +02:00
|
|
|
|
|
|
|
|
// Invoked by GitHub Actions
|
2020-06-13 13:54:27 +02:00
|
|
|
export async function run(): Promise<void> {
|
2021-09-14 05:33:50 -06:00
|
|
|
try {
|
|
|
|
|
await caches.save()
|
|
|
|
|
} catch (error) {
|
|
|
|
|
core.setFailed(String(error))
|
|
|
|
|
if (error instanceof Error && error.stack) {
|
|
|
|
|
core.info(error.stack)
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-13 13:34:07 +02:00
|
|
|
}
|
|
|
|
|
|
2020-06-13 13:44:30 +02:00
|
|
|
run()
|