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.
More on Contexts, Expressions, Env & Outputs
List the available contexts and what each holds.BeginnerWhich contexts can you use in which keys? Give two examples that trip people up.AdvancedWhat are the expression operators and how do comparisons coerce types?IntermediateHow do you write a ternary in GitHub Actions expressions?IntermediateWhat do `contains`, `startsWith`, `endsWith`, `format` and `join` do?BeginnerWhat do `toJSON` and `fromJSON` do, and give a real use of each?Intermediate