How not to repeat steps that are needed multiple times?


I want to build a workflow setup where the same steps are used multiple times.
Is there a way to avoid repeating them as it is done in e.g. the parallel jobs example?

In the example the effect is not that bad, but as my steps are quite a bit longer and more complicated this not only creates a lot of configuration, but is also error prone (when e.g. a bug is fixed, one has to make sure to copy the changes over to all usages).


Seems a thing called “aliases” exists in YAML:
(Although I couldn’t see the build stats in the PRs and commits… do they mabye not use it?)

Something similar is also documented in the blog it seems:


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.