Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter in folder changes does not seem to work #208

Open
LayMui opened this issue Nov 11, 2023 · 1 comment
Open

filter in folder changes does not seem to work #208

LayMui opened this issue Nov 11, 2023 · 1 comment

Comments

@LayMui
Copy link

LayMui commented Nov 11, 2023

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

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
Copy link

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-.*'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants