From 8af35cb7789d6f432d10fa736bae6f151f85dfca Mon Sep 17 00:00:00 2001 From: Artturin Date: Mon, 21 Nov 2022 18:11:25 +0200 Subject: [PATCH] ci: run on the pr branch --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 651a611..33a3437 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] + if: github.repository_owner == 'nix-community' steps: - uses: actions/checkout@v3 + with: + # pull_request_target checks out the base branch by default + ref: refs/pull/${{ github.event.pull_request.number }}/merge - uses: cachix/install-nix-action@v18 - run: nix build --extra-experimental-features nix-command -L -f . -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz --show-trace