mirror of
https://github.com/cachix/install-nix-action.git
synced 2025-08-02 04:49:12 +00:00
run the shell profile and save the env
This commit is contained in:
parent
96bd9f39e4
commit
5825a39447
1 changed files with 6 additions and 4 deletions
|
@ -107,10 +107,10 @@ done
|
|||
|
||||
sh "$workdir/install" "${installer_options[@]}"
|
||||
|
||||
# Set paths
|
||||
echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
|
||||
# new path for nix 2.14
|
||||
echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"
|
||||
# # Set paths
|
||||
# echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH"
|
||||
# # new path for nix 2.14
|
||||
# echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH"
|
||||
|
||||
if [[ -n "${INPUT_NIX_PATH:-}" ]]; then
|
||||
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
|
||||
|
@ -121,5 +121,7 @@ if [[ -z "${TMPDIR:-}" ]]; then
|
|||
echo "TMPDIR=${RUNNER_TEMP}" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
comm -13 <(env | sort) <(bash /etc/profile.d/nix.sh && env | sort) > "$GITHUB_ENV"
|
||||
|
||||
# Close the log message group which was opened above
|
||||
echo "::endgroup::"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue