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.
This commit is contained in:
CyrilWaechter
2026-09-14 19:32:08 +02:00
parent b08de6fa7e
commit e710133c3a
+3
View File
@@ -16,6 +16,9 @@ jobs:
- uses: dorny/paths-filter@v4 - uses: dorny/paths-filter@v4
id: filter id: filter
with: 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: | filters: |
code: code:
- 'src/bcf/**' - 'src/bcf/**'