fix: move process.exit() to cache-save.ts (#53)

This commit is contained in:
Kenji Matsuoka 2024-04-18 00:41:39 -07:00 committed by GitHub
parent 7d10bd0f83
commit 568ddd6940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

1
dist/cache-save.js vendored
View File

@ -74843,6 +74843,7 @@ async function run() {
const err = error;
core.setFailed(err.message);
}
process.exit();
}
async function saveCache2() {
const cachePaths = JSON.parse(core.getState("cache-paths"));

1
dist/setup-pdm.js vendored
View File

@ -91128,7 +91128,6 @@ async function run() {
} catch (error2) {
core8.setFailed(error2.message);
}
import_node_process4.default.exit();
}
run();
/*! Bundled license information:

View File

@ -12,6 +12,9 @@ async function run() {
const err = error as Error
core.setFailed(err.message)
}
// Explicit process.exit() to not wait for hanging promises,
// see https://github.com/actions/setup-node/issues/878
process.exit()
}
async function saveCache() {

View File

@ -67,9 +67,6 @@ async function run(): Promise<void> {
catch (error: any) {
core.setFailed(error.message)
}
// Explicit process.exit() to not wait for hanging promises,
// see https://github.com/actions/setup-node/issues/878
process.exit()
}
run()