Copy action from another repo during workflow #25607
-
I have created an action that I want to use in multiple repositories. Is it possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, you can use the usual
Notice that you need to generate a token that has access to the private repository with actions and add it as an org/account secret. You can have multiple actions in a single repository in separate folders, then you can check it out once and use any of them. Or you can have a repository per action, then you will need to use the checkout step several times. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much. It worked! |
Beta Was this translation helpful? Give feedback.
Yes, you can use the usual
checkout
action to do it. Here is an example:Notice that you need to generate a token that has access to the private repository with actions and add it as an org/account secret.
You can have multiple actions in a single repository in separate folders, then you can check it out once and use any of them. Or you can have a repository per action, …