This is an automated email from the ASF dual-hosted git repository.

blaginin pushed a commit to branch db/back-to-ana06
in repository https://gitbox.apache.org/repos/asf/datafusion-sandbox.git

commit 6359a913667bcbcba7f2216544f063475745e238
Merge: d04372a5b 7b94c5578
Author: blaginin <[email protected]>
AuthorDate: Sun Nov 9 16:47:42 2025 +0000

    Switch to ana06/get-changed-files for docs-only detection
    
    The dorny/paths-filter action doesn't support negation patterns
    correctly in the way we need - using '**' with exclusions always
    returns true because any file matches the positive pattern.
    
    ana06/get-changed-files properly implements glob negations using
    minimatch, where negative patterns (starting with !) exclude files
    from previous positive matches. When the filter returns an empty
    string, it means all changed files were excluded (docs/markdown only).
    
    This approach correctly skips CI when only documentation changes.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <[email protected]>

 .github/workflows/rust.yml | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --cc .github/workflows/rust.yml
index e2840f9fd,16baf5a79..72e1317f2
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@@ -40,19 -40,19 +40,18 @@@ jobs
    check-files:
      runs-on: ubuntu-latest
      outputs:
-       should_skip: ${{ steps.filter.outputs.docs-only == 'true' }}
 -      should_skip: ${{ steps.filter.outputs.code == 'false' }}
++      should_skip: ${{ steps.changed-files.outputs.all == '' }}
      steps:
        - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8  # 
v5.0.0
--      - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36  # 
v3.0.2
--        id: filter
++      - uses: ana06/get-changed-files@25f79e676e7ea1868813e21465014798211fad8c
++        id: changed-files
          with:
--          filters: |
-             docs-only:
-               - 'docs/**'
-               - '**/*.md'
-               - '.github/ISSUE_TEMPLATE/**'
-               - '.github/pull_request_template.md'
-           predicate-quantifier: 'every'
 -            code:
 -              - '**'
 -              - '!**/*.md'
 -              - '!docs/**'
 -              - '!.github/ISSUE_TEMPLATE/**'
 -              - '!.github/pull_request_template.md'
++          filter: |
++            **
++            !docs/**
++            !**/*.md
++            !.github/ISSUE_TEMPLATE/**
++            !.github/pull_request_template.md
  
    # Check crate compiles and base cargo check passes
    linux-build-lib:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to