diff --git a/src/cache-save.ts b/src/cache-save.ts index 4499e9997..684e42cf7 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -7,6 +7,7 @@ import {getPackageManagerInfo} from './cache-utils'; // Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in // @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to // throw an uncaught exception. Instead of failing this action, just warn. + process.on('uncaughtException', e => { const warningPrefix = '[warning]'; core.info(`${warningPrefix}${e.message}`);