touchifyapp / vsts-changed-files

Azure DevOps pipeline task to get changed files since last succeeded build
MIT License
12 stars 6 forks source link

HasChanged is always true #41

Closed goors closed 1 year ago

goors commented 1 year ago

First of all thanks for stuff that you did.

I am always getting true with message:

Changes detected since last succeeded build, setting "CodeChanged" to "true"

In list of file, it says all files are changed.

What do you mean by since last succeeded build?

Is there a way to have this part work for just only one file:

rules: |
   [CodeChanged]
   src/**/*.ts

I have 20 crawlers, and if i only change one file, i do not want for all them to go to build, and release and so on.

So something like:

rules: src/Crawlers/CrawlernumberOne.ts

SomaticIT commented 1 year ago

Hello,

Thank you for your message.

If I understand correctly, you can use the multi-variable usage: https://github.com/touchifyapp/vsts-changed-files#multi-variable-usage.

rules: |
   [CrawlerNumberOne]
   src/Crawlers/CrawlerNumberOne.ts

   [CrawlerNumberTwo]
   src/Crawlers/CrawlerNumberTwo.ts

   [CrawlerNumberThree]
   src/Crawlers/CrawlerNumberThree.ts

  ...

Does this works for you?

Thanks

goors commented 1 year ago

Thanks. That is THE thing. Thank you.