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

How to add individual files to this filter? #219

Open
adykaaa opened this issue Feb 6, 2024 · 1 comment
Open

How to add individual files to this filter? #219

adykaaa opened this issue Feb 6, 2024 · 1 comment

Comments

@adykaaa
Copy link

adykaaa commented Feb 6, 2024

I am using a filter like so:

all-files:

  • "["!((.github|.hooks|actions|docs|frontend)/**)"]"

which works great because these directories are getting ignored (which is what I want). I also want to be able to add invididual files to this exact filter, e.g .gitignore or otherDirectory/package.json. How can I do that?

@jamesc-skyward
Copy link

This should work:

- uses: dorny/paths-filter@v3
  id: changes
  with:
    filters: |
      all-files:
        - '!(((.github|.hooks|actions|docs|frontend)/**)|.gitignore|otherDirectory/package.json)'

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