dorny / paths-filter

Conditionally run actions based on files modified by PR, feature branch or pushed commits
MIT License
2.14k stars 239 forks source link

filter in folder changes does not seem to work #208

Open LayMui opened 11 months ago

LayMui commented 11 months ago

I made changes to the files at packages/coffee-club/package.json

but the ci shows

Detected 14 changed files Results: Filter coffee-club = false Matching files: none Changes output set to []

SethFalco commented 10 months ago

It's difficult to tell because the formatting it messed up, but I'm guessing you made a mistake in your configuration. Can you fix the formatting of your config in the issue? It looks like you defined your filters wrong currently.

It should be more like this, namely that you haven't indented your config correctly and are missing the YAML array syntax.

uses: dorny/paths-filter@v2
with:
  filters: |
    coffee-club:
      - 'packages/coffee-club/**'
      - 'envs/coffee-club-.*'