Merge pull request #52 from wamserma/patch-1

replace deprecated functions
This commit is contained in:
Domen Kožar 2020-10-13 11:52:23 +02:00 committed by GitHub
commit da678383b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,15 +35,15 @@ if [[ $OSTYPE =~ darwin ]]; then
# macOS needs certificates hints # macOS needs certificates hints
cert_file=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt 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 export NIX_SSL_CERT_FILE=$cert_file
sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file" sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file"
fi fi
# Set paths # Set paths
echo "::add-path::/nix/var/nix/profiles/per-user/$USER/profile/bin" echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> $GITHUB_PATH
echo "::add-path::/nix/var/nix/profiles/default/bin" echo "/nix/var/nix/profiles/default/bin" >> $GITHUB_PATH
if [[ $INPUT_NIX_PATH != "" ]]; then if [[ $INPUT_NIX_PATH != "" ]]; then
echo "::set-env name=NIX_PATH::${INPUT_NIX_PATH}" echo "NIX_PATH=${INPUT_NIX_PATH}" >> $GITHUB_ENV
fi fi