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