From 6c527547dcc5eb960a50909eed8635e58a41f880 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 17 Nov 2025 10:16:31 +0000 Subject: [PATCH] ci(nix): checkout pull request HEAD instead of merge commit --- .github/workflows/nix.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 8b8d5d0d8..5087e9025 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -25,6 +25,7 @@ jobs: with: show-progress: false persist-credentials: false + ref: ${{ github.event.pull_request.head.sha }} - uses: cachix/install-nix-action@fd24c48048070c1be9acd18c9d369a83f0fe94d7 # v31 - run: nix fmt flake.nix -- --check @@ -84,6 +85,7 @@ jobs: with: show-progress: false persist-credentials: false + ref: ${{ github.event.pull_request.head.sha }} - uses: cachix/install-nix-action@fd24c48048070c1be9acd18c9d369a83f0fe94d7 # v31 - run: nix build .#${{ matrix.installable }} @@ -105,5 +107,6 @@ jobs: with: show-progress: false persist-credentials: false + ref: ${{ github.event.pull_request.head.sha }} - uses: cachix/install-nix-action@fd24c48048070c1be9acd18c9d369a83f0fe94d7 # v31 - run: nix build .#${{ matrix.installable }}