Skip to content

Commit

Permalink
Merge pull request #67 from cachix/fix-self-hosted-runners
Browse files Browse the repository at this point in the history
find cachix executable by not hardcoding the user
  • Loading branch information
domenkozar authored Nov 10, 2020
2 parents 38dc1a9 + 07abd5e commit 6e4751e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 6e4751e

Please sign in to comment.