mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 08:12:10 -05:00
cca55d0890
Without this, the error logs contain an "UnhandledPromiseRejectionError" but the action is reported as succeeding.
16 lines
359 B
TypeScript
16 lines
359 B
TypeScript
import * as core from '@actions/core'
|
|
import * as caches from './caches'
|
|
|
|
// Invoked by GitHub Actions
|
|
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)
|
|
}
|
|
}
|
|
}
|
|
|
|
run()
|