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

Excluding files from sources does not seem to work. #66

Open
shifqu opened this issue Dec 27, 2024 · 2 comments
Open

Excluding files from sources does not seem to work. #66

shifqu opened this issue Dec 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@shifqu
Copy link

shifqu commented Dec 27, 2024

Hello

First of all, thanks a lot for this useful task.

We have been successfully using this task, but not we'd like to exclude certain files.

I have tried multiple patterns, but none seem to work:

**/*.yml
!**/02-build-config.yml
**/*.yml
!02-build-config.yml
**/*.yml; !**/02-build-config.yml
**/*.yml; !02-build-config.yml

I even tried starting with @, but this is for variables so did not expect it work. And as expected it didn't.

Could you advise on how we would be able to exclude certain files from the task? Or highlight what I am doing wrong here?

Thanks in advance and happy holidays!

@shifqu
Copy link
Author

shifqu commented Dec 27, 2024

FYI: As a workaround, I have created two directories. And now in my Azure Pipeline I launch the task on the correct folder.
Would be nice to have the files in the same subdirectory though.

@qetza
Copy link
Owner

qetza commented Dec 31, 2024

Hi @shifqu,
The pattern which will work is the following:

**/*.yml;!**/02-build-config.yml

I forgot to trim values when splitting on the ; so the space you have after the semi-colon is part of the negative pattern. I'll fix this in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants