This is an automated email from the ASF dual-hosted git repository.
blaginin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-sandbox.git
The following commit(s) were added to refs/heads/main by this push:
new d04372a5b Fix paths-filter logic to correctly skip CI for docs-only
changes
new ee5da7a3f Merge remote-tracking branch 'sandbox/main' into sandbox-main
d04372a5b is described below
commit d04372a5b9dca0a38d4a5f7485f5df4ab2427b8d
Author: blaginin <[email protected]>
AuthorDate: Sun Nov 9 16:22:08 2025 +0000
Fix paths-filter logic to correctly skip CI for docs-only changes
The previous approach using `'**'` with negations didn't work because
dorny/paths-filter returns true if ANY file matches ANY positive pattern.
The negations only filter the matched files list, not the boolean output.
Solution: Invert the logic by defining a 'docs-only' filter with
`predicate-quantifier: 'every'`, which returns true only when ALL
changed files are documentation. This correctly skips CI jobs when
only docs are modified.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
---
.github/workflows/rust.yml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index d7571c337..e2840f9fd 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -40,19 +40,19 @@ jobs:
check-files:
runs-on: ubuntu-latest
outputs:
- should_skip: ${{ steps.filter.outputs.code == 'false' }}
+ should_skip: ${{ steps.filter.outputs.docs-only == 'true' }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #
v5.0.0
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #
v3.0.2
id: filter
with:
filters: |
- code:
- - '**'
- - '!**.md'
- - '!docs/**'
- - '!.github/ISSUE_TEMPLATE/**'
- - '!.github/pull_request_template.md'
+ docs-only:
+ - 'docs/**'
+ - '**/*.md'
+ - '.github/ISSUE_TEMPLATE/**'
+ - '.github/pull_request_template.md'
+ predicate-quantifier: 'every'
# Check crate compiles and base cargo check passes
linux-build-lib:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]