Skip to content

Commit 568ddd6

Browse files
authored
fix: move process.exit() to cache-save.ts (#53)
1 parent 7d10bd0 commit 568ddd6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/cache-save.js

+1
Original file line numberDiff line numberDiff line change
@@ -74843,6 +74843,7 @@ async function run() {
7484374843
const err = error;
7484474844
core.setFailed(err.message);
7484574845
}
74846+
process.exit();
7484674847
}
7484774848
async function saveCache2() {
7484874849
const cachePaths = JSON.parse(core.getState("cache-paths"));

dist/setup-pdm.js

-1
Original file line numberDiff line numberDiff line change
@@ -91128,7 +91128,6 @@ async function run() {
9112891128
} catch (error2) {
9112991129
core8.setFailed(error2.message);
9113091130
}
91131-
import_node_process4.default.exit();
9113291131
}
9113391132
run();
9113491133
/*! Bundled license information:

src/cache-save.ts

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ async function run() {
1212
const err = error as Error
1313
core.setFailed(err.message)
1414
}
15+
// Explicit process.exit() to not wait for hanging promises,
16+
// see https://github.com/actions/setup-node/issues/878
17+
process.exit()
1518
}
1619

1720
async function saveCache() {

src/setup-pdm.ts

-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ async function run(): Promise<void> {
6767
catch (error: any) {
6868
core.setFailed(error.message)
6969
}
70-
// Explicit process.exit() to not wait for hanging promises,
71-
// see https://github.com/actions/setup-node/issues/878
72-
process.exit()
7370
}
7471

7572
run()

0 commit comments

Comments
 (0)