Common steps for all workflows? #25901
-
In most of my runners, the first couple of steps are identical, since they setup a common environment. Is it possible to bundle common steps in one place and use them from other workflows? It is error prone to maintain these steps in every workflow independently. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
That sounds like using the recently introduced composite actions might help. They allow you to combine a bunch of |
Beta Was this translation helpful? Give feedback.
-
When
is supported, this is exactly what I need. Do you know if there is a timeline on that? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately not, I don’t have access to Github’s internal planning either. I only know they’re working on it: actions/runner#646 |
Beta Was this translation helpful? Give feedback.
That sounds like using the recently introduced composite actions might help. They allow you to combine a bunch of
run
steps into a reusable action. Note that using other actions in composites is not supported yet, so you’d still have to do things like checkout in each workflow.