mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 06:44:33 +02:00
ci/pr-merged: use locked nixpkgs
This commit is contained in:
parent
54c44c09fa
commit
5c3236c091
1 changed files with 13 additions and 2 deletions
15
.github/workflows/pr-merged.yml
vendored
15
.github/workflows/pr-merged.yml
vendored
|
@ -73,13 +73,24 @@ jobs:
|
|||
id: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: flake/dev/diff-plugins.py
|
||||
sparse-checkout: |
|
||||
flake/dev/diff-plugins.py
|
||||
flake.lock
|
||||
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
|
||||
uses: cachix/install-nix-action@v31
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||
nix_path: nixpkgs=${{ steps.nixpkgs.outputs.url }}
|
||||
extra_nix_config: |
|
||||
accept-flake-config = true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue