mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 01:57:28 +08:00
Merge branch 'master' of https://github.com/nikita-bykov/virtual-environments into pipx-windows
This commit is contained in:
@@ -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