mirror of
https://github.com/actions/runner-images.git
synced 2026-01-05 01:35:22 +08:00
Merge pull request #296 from vmapetr/v-dmshib/update-gem-latest
Update gem to latest version
This commit is contained in:
@@ -17,4 +17,8 @@ $latestRubyBinPath2_5 = Get-ChildItem -Path $toolcacheRubyPath | Sort-Object {[S
|
||||
|
||||
Add-MachinePathItem $latestRubyBinPath2_5
|
||||
$env:Path = Get-MachinePath
|
||||
|
||||
# Update ruby gem to latest version
|
||||
gem update --system
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -40,6 +40,7 @@ else
|
||||
$rubyExeOnPath = (Get-Command -Name 'ruby').Path
|
||||
$rubyBinOnPath = Split-Path -Path $rubyExeOnPath
|
||||
$rubyVersionOnPath = Get-RubyVersion -rubyRootPath $rubyBinOnPath
|
||||
$gemVersion = & gem -v
|
||||
|
||||
# Add details of available versions in Markdown
|
||||
$SoftwareName = "Ruby (x64)"
|
||||
@@ -48,6 +49,7 @@ $Description = @"
|
||||
_Environment:_
|
||||
* Location: $rubyBinOnPath
|
||||
* PATH: contains the location of ruby.exe version $rubyVersionOnPath
|
||||
* Gem Version: $gemVersion
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user