Interview Prep/GitHub Actions/Contexts, Expressions, Env & Outputs

What are object filters (`.*`) and how are they useful?

IntermediateConceptContexts, Expressions, Env & Outputs
Answer

.* projects a property from every element of an array or every value of an object, producing an array. Examples:

if: contains(github.event.pull_request.labels.*.name, 'skip-e2e')
if: contains(needs.*.result, 'failure')
if: contains(github.event.commits.*.message, '[migrate]')

contains(needs.*.result, 'failure') in a fan-in job checks every dependency in one expression.

All GitHub Actions questions Roadmap: GitHub Actions

More on Contexts, Expressions, Env & Outputs