mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
[Windows] Update helper name to Expand-7ZipArchive (#8875)
* [Windows] Update helper name to Expand-7ZipArchive * Fix typo
This commit is contained in:
committed by
GitHub
parent
64d5d2c1f4
commit
6efbc46fc7
@@ -48,7 +48,7 @@ function Install-Ruby {
|
||||
# Expand archive with binaries
|
||||
$packageName = [IO.Path]::GetFileNameWithoutExtension((Split-Path -Path $PackagePath -Leaf))
|
||||
$tempFolder = Join-Path -Path $rubyToolcachePath -ChildPath $packageName
|
||||
Extract-7Zip -Path $PackagePath -DestinationPath $rubyToolcachePath
|
||||
Expand-7ZipArchive -Path $PackagePath -DestinationPath $rubyToolcachePath
|
||||
|
||||
# Get Ruby version from binaries
|
||||
$rubyVersion = & "$tempFolder\bin\ruby.exe" -e "print RUBY_VERSION"
|
||||
|
||||
Reference in New Issue
Block a user