gradle-build-action/src/post.ts

17 lines
359 B
TypeScript
Raw Normal View History

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