From e710133c3a5fb541dbec06d3ce31cb9bb8ce1d97 Mon Sep 17 00:00:00 2001 From: CyrilWaechter Date: Mon, 14 Sep 2026 19:32:08 +0200 Subject: [PATCH] Honour excluded paths in CI change detection dorny/paths-filter only applies negated ('!') rules with the some-with-excludes predicate quantifier. With the default 'some', the '!src/ifcopenshell-python/docs/**' rule makes the filter match every file outside docs, so unrelated changes (e.g. a new workflow file) incorrectly trigger the full build. Generated with the assistance of an AI coding tool. --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7a3dc0710..ed526e4733 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,9 @@ jobs: - uses: dorny/paths-filter@v4 id: filter with: + # 'some-with-excludes' is required for the '!...' rule to be honoured. + # With the default 'some', the negated rule ends up matching everything. + predicate-quantifier: 'some-with-excludes' filters: | code: - 'src/bcf/**'