fix: move process.exit() to cache-save.ts (#53)
This commit is contained in:
parent
7d10bd0f83
commit
568ddd6940
1
dist/cache-save.js
vendored
1
dist/cache-save.js
vendored
@ -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
1
dist/setup-pdm.js
vendored
@ -91128,7 +91128,6 @@ async function run() {
|
||||
} catch (error2) {
|
||||
core8.setFailed(error2.message);
|
||||
}
|
||||
import_node_process4.default.exit();
|
||||
}
|
||||
run();
|
||||
/*! Bundled license information:
|
||||
|
@ -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() {
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user