Skip to content

Commit 2cd4ab1

Browse files
committed
try ruby stuff
1 parent c9d60ff commit 2cd4ab1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/actions/setup-e2e-env/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,17 @@ runs:
256256
run: |
257257
# Use system Ruby instead of ruby/setup-ruby action to avoid permission issues
258258
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+
259270
ruby --version
260271
gem --version
261272
# Install bundler globally

0 commit comments

Comments
 (0)