mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-01-31 22:41:27 +08:00
Add comment to clarify process.exit(0) (#161)
Copied from https://github.com/actions/cache/pull/1217
This commit is contained in:
parent
caf0cab7a6
commit
9b71657bb2
5
dist/save-cache/index.js
generated
vendored
5
dist/save-cache/index.js
generated
vendored
@ -82523,6 +82523,11 @@ function run() {
|
||||
const err = error;
|
||||
core.setFailed(err.message);
|
||||
}
|
||||
// node will stay alive if any promises are not resolved,
|
||||
// which is a possibility if HTTP requests are dangling
|
||||
// due to retries or timeouts. We know that if we got here
|
||||
// that all promises that we care about have successfully
|
||||
// resolved, so simply exit with success.
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
|
@ -20,6 +20,11 @@ export async function run(): Promise<void> {
|
||||
const err = error as Error;
|
||||
core.setFailed(err.message);
|
||||
}
|
||||
// node will stay alive if any promises are not resolved,
|
||||
// which is a possibility if HTTP requests are dangling
|
||||
// due to retries or timeouts. We know that if we got here
|
||||
// that all promises that we care about have successfully
|
||||
// resolved, so simply exit with success.
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user