Re-using actions from other repos (what is .github/actions for?) #116540
-
Select Topic AreaQuestion BodyTLDR: I have a reusable action in
I have a repo with a bunch of common tools and files, and I thought I'd put some reusable actions in there. This repo is NOT solely for hosting actions, even though I see that is "recommended." If possible I'd like to keep it that way. In the documentation it recommends placing such actions in the ".github/actions" directory:
I can't find any other reference to this directory anywhere online, mostly because search tools (google, bing) seem to ignore the punctuation. How do I reuse this action? Should it not be in the .github/actions folder? Do I need to include that in the OK, so fully specifying the path to the action works: So what's the point of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's just a recommendation. Standalone actions contains normally the action.yml in the root directory. So that you can call it like this:
|
Beta Was this translation helpful? Give feedback.
It's just a recommendation.
So if you managed many different builds, you can easily find the (local) build actions.
Standalone actions contains normally the action.yml in the root directory.
Example: https://github.com/actions/github-script
So that you can call it like this: