Running multiple reusable actions in succession #26730
-
I’m currently experimenting with reusable actions. In my head I was going to separate each part of my action into reusable actions, then call them whenever needed on a step-by-step basis. This is what I came up with:
But trying to run this errors out with:
So I’m confused how to get multiple reusable workflows in a single action. I can get it running like this, but they they won’t be run in the order I want them to.
Any tips? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
What you’re using there are reusable workflows, though it sounds like composite actions might be a better fit for what you want to do: Creating a composite action - GitHub Docs Alternatively, if you really want to use reusable workflows, you could create a |
Beta Was this translation helpful? Give feedback.
-
Oops, I assumed the two were one and the same. I’ll try composite actions, thank you! |
Beta Was this translation helpful? Give feedback.
What you’re using there are reusable workflows, though it sounds like composite actions might be a better fit for what you want to do: Creating a composite action - GitHub Docs
Alternatively, if you really want to use reusable workflows, you could create a
needs
relationship between the jobs. Transferring data will be harder that way, though.