expose nix executables also for runner user

This commit is contained in:
Domen Kožar 2019-11-19 11:50:49 +01:00
parent addc7fa7a2
commit 15adaed2d7
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
3 changed files with 5 additions and 2 deletions

View file

@ -35,7 +35,7 @@ async function run() {
// TODO: retry due to all the things that go wrong
const nixInstall = await tc.downloadTool('https://nixos.org/nix/install');
await 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 (type() == "Darwin") {