From a9f87384f857272699007cd71375dc4d17a6b982 Mon Sep 17 00:00:00 2001 From: Matt Hunzinger Date: Sat, 14 Sep 2024 12:27:41 -0400 Subject: [PATCH] Skip running nix CI for draft PRs (#2961) --- .github/workflows/nix.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 64de52c06..13ae7de10 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -1,10 +1,30 @@ name: "Nix CI" + on: - # Run only when pushing to mainline, and making PRs push: branches: - main + paths: + - packages/** + - examples/** + - docs/guide/** + - src/** + - .github/** + - lib.rs + - Cargo.toml + - Makefile.toml + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + branches: + - main + paths: + - packages/** + - examples/** + - src/** + - .github/** + - lib.rs + - Cargo.toml jobs: build: runs-on: ${{ matrix.os }}