Skip to content

Commit

Permalink
fix: move process.exit() to cache-save.ts (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamatsuoka authored Apr 18, 2024
1 parent 7d10bd0 commit 568ddd6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/cache-save.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
1 change: 0 additions & 1 deletion dist/setup-pdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -91128,7 +91128,6 @@ async function run() {
} catch (error2) {
core8.setFailed(error2.message);
}
import_node_process4.default.exit();
}
run();
/*! Bundled license information:
Expand Down
3 changes: 3 additions & 0 deletions src/cache-save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
3 changes: 0 additions & 3 deletions src/setup-pdm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 568ddd6

Please sign in to comment.