DEV Community

Discussion on: Composite Actions vs Reusable Workflows: what is the difference? [GitHub Actions]

Collapse
 
sergeidyga profile image
sergei • Edited

also Difference 3: Conditionals:

in the Composite Actions, where you can only have a flat list of steps and no control over their execution

not true

Each Composite Actions definition, on the other hand, requires its own repository

also not true

assuming the article is out of date?

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

As far as I know, this is still correct.

AFAIK you cannot have conditionals in the Composite Actions: docs.github.com/en/actions/creatin...

Collapse
 
wheelerlaw profile image
Wheeler Law • Edited

Conditional statements are supported in individual steps in composite actions. This has been supported since November of 2021. See the GitHub news post here.