Conversation
This gives you the ability to pass script text to the `setup-ruby` action. The script will be executed after Ruby and Bundler are installed, but before `bundle install` is run. If you want to execute a script on disk, just pass the filename, like `'./setup.sh'` or `'ruby setup.rb'` If you intend to use this to install a custom Bundler version or the like, make sure to specify `bundler: none` so you don't get a second version installed.
|
See #239 (comment) |
|
The arguments in that thread don't really hold water, imho. If you want to run a specific shell, then you can do so with e.g. I agree that the marginally better solution would be to separate this into two actions, but that's a lot of work to do and a lot of work to migrate users to. There are use cases for injecting commands prior to There are plenty of other use cases though, like setting up a build/install environment more complex than
|
That will still misbehave for several cases, including shell heredocs, line continuations with Regarding the shell, maybe some people want the same as the default shell per platform, and some want Bash on all platforms. And it seems clear nobody wants to write Basically it feels like a feature that always asks for more edge cases and infinite work to keep improving it.
I don't think this would work, For your use-case would this work? Can you try it? - uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
- run: custom commands
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true |
This gives you the ability to pass script text to the
setup-rubyaction. The script will be executed after Ruby and Bundler are installed, but beforebundle installis run.This lets you install packages or Bundler plugins, download patches, anything.
If you want to execute a script on disk, just pass the filename, like
'./setup.sh'or'ruby setup.rb'If you intend to use this to install a custom Bundler version or the like, make sure to specify
bundler: noneso you don't get a second version installed.