if Conditions
say it: “if kun-DISH-unz” /ɪf kənˈdɪʃənz/
Runs a job or step only when a condition holds.
What does if Conditions do?
if: runs a job or step only when a condition is true, like only on the main branch.
if: github.ref == 'refs/heads/main'
Level: Journeyman · More GitHub Actions terms at this level
Updated