Context Expression - Definição do Glossário de CI/CD
Uma context expression é um template ${{ ... }} num workflow que lê de contexts como github, env, matrix, steps, needs, inputs e secrets para injetar valores ou avaliar condições.
Contexts comuns
github.sha é o commit, github.ref a ref da branch ou tag, github.event_name o trigger. As expressions também suportam operadores e funções, então if: ${{ github.ref == 'refs/heads/main' }} restringe um step à branch main.
Guias relacionados
Conditional Step - CI/CD Glossary DefinitionConditional Step: A conditional step is a job step (or job) with an `if:` expression that decides at runtime…
Event Payload - CI/CD Glossary DefinitionEvent Payload: An event payload is the JSON describing the event that triggered a workflow, available as `${{…
Step Output - CI/CD Glossary DefinitionStep Output: A step output is a named value one step produces by writing `name=value` to the `$GITHUB_OUTPUT`…