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

[Feature request] Return as changed array #199

Closed matthew-dean closed 1 year ago

matthew-dean commented 1 year ago

Rather than returning an object with { [key]: 'true' | 'false' }, it would be great if the paths-filter could optionally return an array.

Such that, instead of:

{
  dir1: 'true',
  dir2: 'false',
  dir3: 'true'
}

... the paths filter would return:

['dir1', 'dir3']

This could then easily be used for things like matrix strategies.

matthew-dean commented 1 year ago

Oh! Derp! Apparently this is already returned as changes. Thanks!