What are contexts and expressions in GitHub Actions?
IntermediateConceptGitHub Actions
Answer
Expressions ${{ ... }} read contexts: github (event, ref, sha, actor), env, vars, secrets, job, steps, runner, needs, matrix, inputs. Functions include contains, startsWith, format, join, toJSON, fromJSON, hashFiles. fromJSON lets one job emit a JSON matrix for another to consume (dynamic matrices).
strategy:
matrix: ${{ fromJSON(needs.plan.outputs.matrix) }}
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate