Add explicit process.exit() to avoid wait for hanging promises

When using the `@actions/cache` library to save cache entries, it seems that one
or more Promises remain unresolved after the save completes.
With Node20 this causes a delay when exiting the process: the default behaviour
now wait for these Promises to complete. Adding an explicit `Process.exit()`
removes the delay, returning to the Node 16 behaviour.

Fixes #1038
This commit is contained in:
daz 2024-01-16 17:43:55 -07:00
parent 346645706f
commit 020a65cab1
No known key found for this signature in database
7 changed files with 7 additions and 9 deletions

1
dist/main/index.js vendored
View file

@ -140765,7 +140765,6 @@ function run() {
});
}
exports.run = run;
run();
/***/ }),

File diff suppressed because one or more lines are too long

2
dist/post/index.js vendored
View file

@ -138076,6 +138076,7 @@ function run() {
}
handleFailure(error);
}
process.exit();
});
}
exports.run = run;
@ -138085,7 +138086,6 @@ function handleFailure(error) {
core.info(error.stack);
}
}
run();
/***/ }),

File diff suppressed because one or more lines are too long