Skip to content

Commit 786fff0

Browse files
Apply fixups from CodeRabbit review (#200)
1 parent f161ab0 commit 786fff0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { SpawnOptions, spawn } from "node:child_process";
2020
// Nix installation events
2121
const EVENT_INSTALL_NIX_FAILURE = "install_nix_failure";
2222
const EVENT_INSTALL_NIX_START = "install_nix_start";
23-
const EVENT_INSTALL_NIX_SUCCESS = "install_nix_start";
23+
const EVENT_INSTALL_NIX_SUCCESS = "install_nix_success";
2424
const EVENT_SETUP_KVM = "setup_kvm";
2525
const EVENT_UNINSTALL_NIX = "uninstall";
2626

@@ -141,10 +141,10 @@ class NixInstallerAction extends DetSysAction {
141141
}
142142

143143
async main(): Promise<void> {
144+
actionsCore.saveState(STATE_START_DATETIME, new Date().toISOString());
144145
await this.scienceDebugFly();
145146
await this.detectAndForceNoSystemd();
146147
await this.install();
147-
actionsCore.saveState(STATE_START_DATETIME, new Date().toISOString());
148148
}
149149

150150
async post(): Promise<void> {
@@ -285,7 +285,7 @@ class NixInstallerAction extends DetSysAction {
285285
}
286286

287287
if (this.nixBuildUserBase !== null) {
288-
executionEnv.NIX_INSTALLER_NIX_BUILD_USER_ID_BASE = `${this.nixBuildUserCount}`;
288+
executionEnv.NIX_INSTALLER_NIX_BUILD_USER_ID_BASE = `${this.nixBuildUserBase}`;
289289
}
290290

291291
if (this.nixPackageUrl !== null) {

0 commit comments

Comments
 (0)