ci/pr-merged: use locked nixpkgs

This commit is contained in:
Matt Sturgeon 2025-07-02 11:00:11 +01:00
parent 54c44c09fa
commit 5c3236c091

View file

@ -73,13 +73,24 @@ jobs:
id: checkout id: checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
sparse-checkout: flake/dev/diff-plugins.py sparse-checkout: |
flake/dev/diff-plugins.py
flake.lock
sparse-checkout-cone-mode: false sparse-checkout-cone-mode: false
- name: Get nixpkgs
id: nixpkgs
run: |
jq --raw-output --exit-status '
.nodes[.nodes[.root].inputs.nixpkgs].locked
| "https://github.com/\(.owner)/\(.repo)/archive/\(.rev).tar.gz"
| "url=\(.)"
' flake.lock >> "$GITHUB_OUTPUT"
- name: Install Nix - name: Install Nix
uses: cachix/install-nix-action@v31 uses: cachix/install-nix-action@v31
with: with:
nix_path: nixpkgs=channel:nixpkgs-unstable nix_path: nixpkgs=${{ steps.nixpkgs.outputs.url }}
extra_nix_config: | extra_nix_config: |
accept-flake-config = true accept-flake-config = true