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