mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-06-08 01:54:27 +00:00
expose nix executables also for runner user
This commit is contained in:
parent
addc7fa7a2
commit
15adaed2d7
3 changed files with 5 additions and 2 deletions
|
@ -46,7 +46,7 @@ function run() {
|
|||
// TODO: retry due to all the things that go wrong
|
||||
const nixInstall = yield tc.downloadTool('https://nixos.org/nix/install');
|
||||
yield exec.exec("sh", [nixInstall, "--daemon"]);
|
||||
core.exportVariable('PATH', `${PATH}:/nix/var/nix/profiles/default/bin`);
|
||||
core.exportVariable('PATH', `${PATH}:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/per-user/runner/profile/bin`);
|
||||
core.exportVariable('NIX_PATH', `/nix/var/nix/profiles/per-user/root/channels`);
|
||||
if (os_1.type() == "Darwin") {
|
||||
// macOS needs certificates hints
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue