workflows: pin install-nix-action to use nix 2.13.3

same reasoning as #218858, only now for an action we depend on and can't
fix quite as easily. cachix-action also uses nix-env and will thus not
work correctly, so pin the nix version used to the last known good one.
This commit is contained in:
pennae 2023-02-28 21:49:32 +01:00 committed by zowoq
parent 7ceeb440c1
commit 3563c178ca
6 changed files with 7 additions and 0 deletions

View file

@ -20,6 +20,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v19
with:
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.

View file

@ -33,6 +33,7 @@ jobs:
# nixpkgs commit is pinned so that it doesn't break
# editorconfig-checker 2.4.0
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- name: Checking EditorConfig
run: |
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'

View file

@ -22,6 +22,7 @@ jobs:
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.

View file

@ -22,6 +22,7 @@ jobs:
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.

View file

@ -22,6 +22,7 @@ jobs:
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.

View file

@ -20,6 +20,7 @@ jobs:
- uses: cachix/install-nix-action@v19
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
- name: setup
id: setup
run: |