From 8a377404057ab402ba23b85d80df8cc28a49ceae Mon Sep 17 00:00:00 2001 From: Markus Wamser Date: Mon, 12 Oct 2020 23:04:59 +0200 Subject: [PATCH] replace deprecated functions this should fix #50 --- lib/install-nix.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/install-nix.sh b/lib/install-nix.sh index b6083ea4..9b2e240b 100755 --- a/lib/install-nix.sh +++ b/lib/install-nix.sh @@ -35,15 +35,15 @@ if [[ $OSTYPE =~ darwin ]]; then # macOS needs certificates hints cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt - echo "::set-env name=NIX_SSL_CERT_FILE::$cert_file" + echo "NIX_SSL_CERT_FILE=$cert_file" >> $GITHUB_ENV export NIX_SSL_CERT_FILE=$cert_file sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file" fi # Set paths -echo "::add-path::/nix/var/nix/profiles/per-user/$USER/profile/bin" -echo "::add-path::/nix/var/nix/profiles/default/bin" +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 "::set-env name=NIX_PATH::${INPUT_NIX_PATH}" + echo "NIX_PATH=${INPUT_NIX_PATH}" >> $GITHUB_ENV fi