-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable use from other Actions #58
Comments
There was a discussion about this in #33 |
Would the approach mentioned in #33 (comment) work for you? |
This seems to be on the roadmap for GitHub Actions: actions/runner#438 |
I think with #33 (comment) that's all that's really needed to use this action from other actions. I'd like to close this issue. |
FWIW, actions/runner#646 seems to be working towards a first-class solution. |
Sometimes, we do not care about installing Ruby per se: we want some tool that happens to use Ruby. One example is building a static website with Hugo and Asciidoc -- which happens to depend on asciidoctor as an external dependency, despite neither Hugo devs nor page creators seeing a single line of Ruby.
So, we want to install asciidoctor and not care about how it's done, e.g. through this action I just wrote. Unfortunately, since actions can't call each other, every user has to repeat the call of
ruby/setup-ruby
.A recommended workaround seems to be for actions to factor out their core functionality into functions that can be imported and called from other actions.
The text was updated successfully, but these errors were encountered: