find cachix executable by not hardcoding the user

This commit is contained in:
Domen Kožar 2020-11-10 14:30:09 +01:00
commit 07abd5e5db
No known key found for this signature in database
GPG key ID: C2FFBCAFD2C24246
2 changed files with 2 additions and 2 deletions

2
dist/main/index.js vendored
View file

@ -1043,7 +1043,7 @@ const extraPullNames = core.getInput('extraPullNames');
const signingKey = core.getInput('signingKey'); const signingKey = core.getInput('signingKey');
const authToken = core.getInput('authToken'); const authToken = core.getInput('authToken');
const skipPush = core.getInput('skipPush'); 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') || const installCommand = core.getInput('installCommand') ||
"nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install"; "nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install";
function setup() { function setup() {

View file

@ -11,7 +11,7 @@ const extraPullNames = core.getInput('extraPullNames');
const signingKey = core.getInput('signingKey'); const signingKey = core.getInput('signingKey');
const authToken = core.getInput('authToken') const authToken = core.getInput('authToken')
const skipPush = core.getInput('skipPush'); 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 = const installCommand =
core.getInput('installCommand') || core.getInput('installCommand') ||
"nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install"; "nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install";