Compare commits
4 Commits
master
...
self-hoste
Author | SHA1 | Date | |
---|---|---|---|
|
39d848c6d3 | ||
|
8ba86cf165 | ||
|
712fbc2bf9 | ||
|
c5729e9110 |
@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Set paths early (ephemeral self-hosted runners might reuse a runner)
|
||||
PATH="/nix/var/nix/profiles/per-user/$USER/profile/bin":"/nix/var/nix/profiles/default/bin":$PATH
|
||||
|
||||
if type -p nix &>/dev/null ; then
|
||||
echo "Aborting: Nix is already installed at $(type -p nix)"
|
||||
exit
|
||||
@ -59,6 +62,7 @@ fi
|
||||
echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> "$GITHUB_PATH"
|
||||
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
|
||||
|
||||
|
||||
if [[ $INPUT_NIX_PATH != "" ]]; then
|
||||
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user