Skip to content
Latchkey

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