mirror of
https://github.com/actions/runner-images.git
synced 2025-12-31 06:18:24 +08:00
Merge branch 'master' of https://github.com/nikita-bykov/virtual-environments into pipx-windows
This commit is contained in:
@@ -49,6 +49,13 @@ Function Install-VisualStudio
|
||||
}
|
||||
else
|
||||
{
|
||||
$setupErrorLogPath = "$env:TEMP\dd_setup_*_errors.log"
|
||||
if (Test-Path -Path $setupErrorLogPath)
|
||||
{
|
||||
$logErrors = Get-Content -Path $setupErrorLogPath -Raw
|
||||
Write-Host "$logErrors"
|
||||
}
|
||||
|
||||
Write-Host "Non zero exit code returned by the installation process : $exitCode"
|
||||
exit $exitCode
|
||||
}
|
||||
|
||||
@@ -3,8 +3,14 @@
|
||||
## Desc: Install GitHub CLI
|
||||
################################################################################
|
||||
|
||||
Choco-Install -PackageName gh
|
||||
Write-Host "Get the latest gh version..."
|
||||
|
||||
$Name = "gh_windows_amd64.msi"
|
||||
$Assets = (Invoke-RestMethod -Uri "https://api.github.com/repos/cli/cli/releases/latest").assets
|
||||
$DownloadUrl = ($Assets.browser_download_url -match "windows_amd64.msi") | Select-Object -First 1
|
||||
|
||||
Install-Binary -Url $DownloadUrl -Name $Name
|
||||
|
||||
Add-MachinePathItem "C:\Program Files (x86)\GitHub CLI"
|
||||
|
||||
Invoke-PesterTests -TestFile "CLI.Tools" -TestName "GitHub CLI"
|
||||
Invoke-PesterTests -TestFile "CLI.Tools" -TestName "GitHub CLI"
|
||||
|
||||
Reference in New Issue
Block a user