mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-23 05:22:07 +01:00
Convert process.exit into return
This commit is contained in:
parent
4edd92a1a4
commit
a13b1bda12
3 changed files with 5 additions and 5 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -95537,7 +95537,7 @@ var MagicNixCacheAction = class extends DetSysAction {
|
|||
core.warning(
|
||||
`skipping post phase due to error in main phase: ${this.errorInMain}`
|
||||
);
|
||||
process.exit(0);
|
||||
return;
|
||||
}
|
||||
if (this.alreadyRunning) {
|
||||
core.debug(TEXT_ALREADY_RUNNING);
|
||||
|
@ -95656,7 +95656,7 @@ var MagicNixCacheAction = class extends DetSysAction {
|
|||
const pidFile = external_node_path_namespaceObject.join(this.daemonDir, "daemon.pid");
|
||||
await promises_namespaceObject.writeFile(pidFile, `${daemon.pid}`);
|
||||
core.info("Waiting for magic-nix-cache to start...");
|
||||
await new Promise((resolve, _reject) => {
|
||||
await new Promise((resolve) => {
|
||||
notifyPromise.then((_value) => {
|
||||
resolve();
|
||||
}).catch((e) => {
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -115,7 +115,7 @@ class MagicNixCacheAction extends DetSysAction {
|
|||
actionsCore.warning(
|
||||
`skipping post phase due to error in main phase: ${this.errorInMain}`,
|
||||
);
|
||||
process.exit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.alreadyRunning) {
|
||||
|
@ -264,7 +264,7 @@ class MagicNixCacheAction extends DetSysAction {
|
|||
|
||||
actionsCore.info("Waiting for magic-nix-cache to start...");
|
||||
|
||||
await new Promise<void>((resolve, _reject) => {
|
||||
await new Promise<void>((resolve) => {
|
||||
notifyPromise
|
||||
// eslint-disable-next-line github/no-then
|
||||
.then((_value) => {
|
||||
|
|
Loading…
Reference in a new issue