paths-filter icon indicating copy to clipboard operation
paths-filter copied to clipboard

Filtering just first-leve files (excluding subfolders) doesn't work

Open cusma opened this issue 11 months ago • 1 comments

Filtering changes on just first-level files in a folder (ignoring subfolders) doesn't work.

An example of what I'm trying to do:

- name: Detect changes
  uses: dorny/paths-filter@v3
  id: filter
  with:
    filters: |
      test-config:
        - 'tests/*(.).py'

cusma avatar Jan 15 '25 19:01 cusma

I guess this just should be: - tests/*.py else the file name must be like tests/xx..py (with two dots).

* matches one level, ** matches any level.

To try out patterns, you can use something like https://codesandbox.io/p/sandbox/picomatch-playground-ebjlxm

SimonHeimberg avatar Aug 25 '25 09:08 SimonHeimberg