Skip to content

Add support for validating multiple files in GitHub Actions

Compare
Choose a tag to compare
@Xantier Xantier released this 08 Sep 09:38
· 32 commits to main since this release

Validate multiple files separated by comma

Actions do not support arrays, only string values see. This is a workaround to support multiple files passed in from a single input.

- uses:  RoadieHQ/[email protected]
  with:
    path: 'catalog-info-1.yaml,catalog-info-2.yaml,catalog-info-3.yaml'

Validate multiple files using a glob

Using a glob allows you to define a pattern and expand the input. In the example below, all files matching this pattern will be returns.

- uses:  RoadieHQ/[email protected]
  with:
    path: 'catalog-info-*.yaml,services/**/*/catalog-info.yaml'

General globbing support

Even the terminal expands glob patterns, in certain situations this does not work e.g. when passing a list of files using STDIN. With this change globs are supported in scenarios.