mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
replace web request to rest method
This commit is contained in:
@@ -9,7 +9,7 @@ Import-Module -Name PathHelpers -Force
|
||||
$temp_install_dir = 'C:\Windows\Installer'
|
||||
New-Item -Path $temp_install_dir -ItemType Directory -Force
|
||||
|
||||
$versionsJson = Invoke-WebRequest "https://product-details.mozilla.org/1.0/firefox_versions.json" | ConvertFrom-Json
|
||||
$versionsJson = Invoke-RestMethod "https://product-details.mozilla.org/1.0/firefox_versions.json"
|
||||
$latestVersion = $versionsJson.LATEST_FIREFOX_VERSION
|
||||
Write-Host "Firefox latest version: $latestVersion"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user