We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d60ff commit 2cd4ab1Copy full SHA for 2cd4ab1
1 file changed
.github/actions/setup-e2e-env/action.yml
@@ -256,6 +256,17 @@ runs:
256
run: |
257
# Use system Ruby instead of ruby/setup-ruby action to avoid permission issues
258
echo "Using system Ruby for vagrant user"
259
+
260
+ # Check if rbenv is being used and install required Ruby version
261
+ if command -v rbenv &> /dev/null; then
262
+ echo "rbenv detected, installing Ruby ${{ inputs.ruby-version }}"
263
+ # Install the required Ruby version if not already installed
264
+ rbenv install -s ${{ inputs.ruby-version }}
265
+ rbenv global ${{ inputs.ruby-version }}
266
+ # Reload rbenv
267
+ eval "$(rbenv init -)"
268
+ fi
269
270
ruby --version
271
gem --version
272
# Install bundler globally
0 commit comments