Release

November 9, 20211 minute read

GitHub Actions: Conditional execution of steps in actions

Actions written in YAML, also known as composite actions, now support if conditionals. This lets you prevent specific steps from executing unless a condition has been met. Like steps defined in workflows, you can use any supported context and expression to create a conditional.

Learn more about actions written in YAML.

For questions, visit the GitHub Actions community

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

GitHub Actions: Conditional execution of steps in actions - GitHub Changelog