add github action to keep nix up-to-date

This commit is contained in:
Jörg Thalheim 2025-05-27 10:02:27 +02:00
parent f5e4dbff3b
commit 129de1289f
2 changed files with 33 additions and 1 deletions

View file

@ -94,7 +94,8 @@ echo "installer options: ${installer_options[*]}"
# There is --retry-on-errors, but only newer curl versions support that
curl_retries=5
while ! curl -sS -o "$workdir/install" -v --fail -L "${INPUT_INSTALL_URL:-https://releases.nixos.org/nix/nix-2.29.0/install}"
nix_version=2.29.0
while ! curl -sS -o "$workdir/install" -v --fail -L "${INPUT_INSTALL_URL:-https://releases.nixos.org/nix/nix-${nix_version}/install}"
do
sleep 1
((curl_retries--))