mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +01:00
Set saved state later
This commit is contained in:
parent
5a8a0e7f2c
commit
ae50b12a7d
3 changed files with 5 additions and 5 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -94894,9 +94894,9 @@ var MagicNixCacheAction = class {
|
||||||
};
|
};
|
||||||
core.debug("Full daemon start command:");
|
core.debug("Full daemon start command:");
|
||||||
core.debug(`${daemonBin} ${daemonCliFlags.join(" ")}`);
|
core.debug(`${daemonBin} ${daemonCliFlags.join(" ")}`);
|
||||||
|
const daemon = (0,external_node_child_process_namespaceObject.spawn)(daemonBin, daemonCliFlags, opts);
|
||||||
this.daemonStarted = true;
|
this.daemonStarted = true;
|
||||||
core.saveState(STATE_STARTED, STARTED_HINT);
|
core.saveState(STATE_STARTED, STARTED_HINT);
|
||||||
const daemon = (0,external_node_child_process_namespaceObject.spawn)(daemonBin, daemonCliFlags, opts);
|
|
||||||
const pidFile = external_node_path_namespaceObject.join(this.daemonDir, "daemon.pid");
|
const pidFile = external_node_path_namespaceObject.join(this.daemonDir, "daemon.pid");
|
||||||
await promises_namespaceObject.writeFile(pidFile, `${daemon.pid}`);
|
await promises_namespaceObject.writeFile(pidFile, `${daemon.pid}`);
|
||||||
core.info("Waiting for magic-nix-cache to start...");
|
core.info("Waiting for magic-nix-cache to start...");
|
||||||
|
|
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
|
@ -201,12 +201,12 @@ class MagicNixCacheAction {
|
||||||
actionsCore.debug("Full daemon start command:");
|
actionsCore.debug("Full daemon start command:");
|
||||||
actionsCore.debug(`${daemonBin} ${daemonCliFlags.join(" ")}`);
|
actionsCore.debug(`${daemonBin} ${daemonCliFlags.join(" ")}`);
|
||||||
|
|
||||||
this.daemonStarted = true;
|
|
||||||
actionsCore.saveState(STATE_STARTED, STARTED_HINT);
|
|
||||||
|
|
||||||
// Start the server. Once it is ready, it will notify us via the notification server.
|
// Start the server. Once it is ready, it will notify us via the notification server.
|
||||||
const daemon = spawn(daemonBin, daemonCliFlags, opts);
|
const daemon = spawn(daemonBin, daemonCliFlags, opts);
|
||||||
|
|
||||||
|
this.daemonStarted = true;
|
||||||
|
actionsCore.saveState(STATE_STARTED, STARTED_HINT);
|
||||||
|
|
||||||
const pidFile = path.join(this.daemonDir, "daemon.pid");
|
const pidFile = path.join(this.daemonDir, "daemon.pid");
|
||||||
await fs.writeFile(pidFile, `${daemon.pid}`);
|
await fs.writeFile(pidFile, `${daemon.pid}`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue