From 07abd5e5dbcebefc0e1d008c1689da76962aa9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 10 Nov 2020 14:30:09 +0100 Subject: [PATCH] find cachix executable by not hardcoding the user --- dist/main/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/main/index.js b/dist/main/index.js index 4a1a8ec9..8311571e 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -1043,7 +1043,7 @@ const extraPullNames = core.getInput('extraPullNames'); const signingKey = core.getInput('signingKey'); const authToken = core.getInput('authToken'); const skipPush = core.getInput('skipPush'); -const cachixExecutable = '/nix/var/nix/profiles/per-user/runner/profile/bin/cachix'; +const cachixExecutable = process.env.HOME + '/.nix-profile/bin/cachix'; const installCommand = core.getInput('installCommand') || "nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install"; function setup() { diff --git a/src/main.ts b/src/main.ts index a0b77544..623e484a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,7 +11,7 @@ const extraPullNames = core.getInput('extraPullNames'); const signingKey = core.getInput('signingKey'); const authToken = core.getInput('authToken') const skipPush = core.getInput('skipPush'); -const cachixExecutable = '/nix/var/nix/profiles/per-user/runner/profile/bin/cachix'; +const cachixExecutable = process.env.HOME + '/.nix-profile/bin/cachix'; const installCommand = core.getInput('installCommand') || "nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install";