Merge pull request #67 from cachix/fix-self-hosted-runners

find cachix executable by not hardcoding the user
This commit is contained in:
Domen Kožar 2020-11-10 14:46:46 +01:00 committed by GitHub
commit 6e4751ed42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 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() {

View file

@ -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";