From 38685b8e2d258dbf039838a5ff984675d1b52a69 Mon Sep 17 00:00:00 2001 From: Eoghan Conlon Date: Tue, 1 Oct 2024 09:59:23 +0100 Subject: [PATCH] Feat. Allowing the owner of the action to specify the nix version Signed-off-by: Eoghan Conlon --- README.md | 2 ++ docker_nix/action.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aa77807..907f7d8 100644 --- a/README.md +++ b/README.md @@ -114,4 +114,6 @@ jobs: runs-on: docker steps: uses: https://forgejo.skynet.ie/Skynet/actions/docker_nix@v7 + with: + nix_version: nixos-unstable ``` diff --git a/docker_nix/action.yml b/docker_nix/action.yml index 1961629..72f0374 100644 --- a/docker_nix/action.yml +++ b/docker_nix/action.yml @@ -11,7 +11,7 @@ runs: apt install sudo - uses: https://github.com/cachix/install-nix-action@v29 with: - nix_path: nixpkgs=channel:nixos-unstable + nix_path: nixpkgs=channel:${{ inputs.nix_version }} extra_nix_config: | trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= substituters = https://nix-cache.skynet.ie/skynet-cache https://hydra.iohk.io https://cache.nixos.org/