Interview Prep/CI/CD/GitHub Actions

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) }}
All CI/CD questions

More on GitHub Actions