mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +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
@@ -89,7 +89,7 @@ function Install-JavaJDK {
|
||||
New-Item -ItemType Directory -Path $javaVersionPath -Force | Out-Null
|
||||
|
||||
# Complete the installation by extracting Java binaries to toolcache and creating the complete file
|
||||
Extract-7Zip -Path $archivePath -DestinationPath $javaVersionPath
|
||||
Expand-7ZipArchive -Path $archivePath -DestinationPath $javaVersionPath
|
||||
Invoke-SBWithRetry -Command {
|
||||
Get-ChildItem -Path $javaVersionPath | Rename-Item -NewName $javaArchPath -ErrorAction Stop
|
||||
}
|
||||
@@ -141,7 +141,7 @@ $coberturaPath = "C:\cobertura-2.1.1"
|
||||
$archivePath = Start-DownloadWithRetry -Url $uri -Name "cobertura.zip"
|
||||
$fileHash = (Get-FileHash -Path $archivePath -Algorithm SHA256).Hash
|
||||
Use-ChecksumComparison $fileHash $sha256sum
|
||||
Extract-7Zip -Path $archivePath -DestinationPath "C:\"
|
||||
Expand-7ZipArchive -Path $archivePath -DestinationPath "C:\"
|
||||
|
||||
[Environment]::SetEnvironmentVariable("COBERTURA_HOME", $coberturaPath, "Machine")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user