Skip to content

Commit

Permalink
set the path earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Nov 14, 2024
1 parent d32de47 commit 849c0a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,12 @@ class NixInstallerAction extends DetSysAction {
await this.executeUninstall();
} else {
// We're already installed, and not reinstalling, just log in to FlakeHub, set GITHUB_PATH and finish early
await this.setGithubPath();

if (this.determinate) {
await this.flakehubLogin();
}

await this.setGithubPath();
actionsCore.info("Nix was already installed, using existing install");
return;
}
Expand Down Expand Up @@ -647,11 +648,11 @@ class NixInstallerAction extends DetSysAction {
await this.spawnDockerShim();
}

await this.setGithubPath();

if (this.determinate) {
await this.flakehubLogin();
}

await this.setGithubPath();
}

async spawnDockerShim(): Promise<void> {
Expand Down

0 comments on commit 849c0a3

Please sign in to comment.