Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
Loading