Skip to content

Glossary: CI/CD with GitHub Actions

if:

Also written: if

A key on a workflow job or step that runs it only when its condition is true; otherwise it is skipped. The `${{ }}` expression wrapper is optional in its value, as in `if: always()` or `if: steps.pip-cache.outputs.cache-hit != 'true'`.

Where the book teaches it

Related terms

expressionalways()startsWith()