Skip to content

Commit cf617ba

Browse files
committed
Show ruby --version
* This is particularly useful for head builds and is also reasonably fast for all supported Rubies.
1 parent c96a864 commit cf617ba

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist/index.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const os = require('os')
22
const fs = require('fs')
33
const path = require('path')
44
const core = require('@actions/core')
5+
const exec = require('@actions/exec')
56
const common = require('./common')
67
const rubygems = require('./rubygems')
78
const bundler = require('./bundler')
@@ -62,6 +63,9 @@ export async function setupRuby(options = {}) {
6263

6364
const rubyPrefix = await installer.install(platform, engine, version)
6465

66+
await common.measure('Print Ruby version', async () =>
67+
await exec.exec('ruby', ['--version']))
68+
6569
if (inputs['rubygems'] !== 'default') {
6670
await common.measure('Updating RubyGems', async () =>
6771
rubygems.rubygemsUpdate(inputs['rubygems'], rubyPrefix))

0 commit comments

Comments
 (0)