mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 11:37:00 +00:00
[Ubuntu, Windows] Update Edgedriver URL and maven version on Ubuntu (#12601)
* [Ubuntu, Windows] Update edgedriver URL * [Ubuntu] Update maven version
This commit is contained in:
committed by
GitHub
parent
4423d3872f
commit
bcdb306912
@@ -34,11 +34,11 @@ mkdir -p $EDGEDRIVER_DIR
|
||||
edge_version=$(microsoft-edge --version | cut -d' ' -f 3)
|
||||
edge_version_major=$(echo $edge_version | cut -d'.' -f 1)
|
||||
|
||||
edgedriver_version_url="https://msedgedriver.azureedge.net/LATEST_RELEASE_${edge_version_major}_LINUX"
|
||||
edgedriver_version_url="https://msedgedriver.microsoft.com/LATEST_RELEASE_${edge_version_major}_LINUX"
|
||||
# Convert a resulting file to normal UTF-8
|
||||
edgedriver_latest_version=$(curl -fsSL "$edgedriver_version_url" | iconv -f utf-16 -t utf-8 | tr -d '\r')
|
||||
|
||||
edgedriver_url="https://msedgedriver.azureedge.net/${edgedriver_latest_version}/edgedriver_linux64.zip"
|
||||
edgedriver_url="https://msedgedriver.microsoft.com/${edgedriver_latest_version}/edgedriver_linux64.zip"
|
||||
edgedriver_archive_path=$(download_with_retry "$edgedriver_url")
|
||||
|
||||
unzip -qq "$edgedriver_archive_path" -d "$EDGEDRIVER_DIR"
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
"java": {
|
||||
"default": "11",
|
||||
"versions": [ "8", "11", "17", "21"],
|
||||
"maven": "3.9.10"
|
||||
"maven": "3.9.11"
|
||||
},
|
||||
"android": {
|
||||
"cmdline-tools": "commandlinetools-linux-9477386_latest.zip",
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
"java": {
|
||||
"default": "17",
|
||||
"versions": [ "8", "11", "17", "21"],
|
||||
"maven": "3.9.10"
|
||||
"maven": "3.9.11"
|
||||
},
|
||||
"android": {
|
||||
"cmdline-tools": "commandlinetools-linux-11076708_latest.zip",
|
||||
|
||||
@@ -15,12 +15,12 @@ if (-not (Test-Path -Path $edgeDriverPath)) {
|
||||
New-Item -Path $edgeDriverPath -ItemType Directory -Force
|
||||
}
|
||||
|
||||
$versionInfoUrl = "https://msedgedriver.azureedge.net/LATEST_RELEASE_$($edgeVersion.Major)_WINDOWS"
|
||||
$versionInfoUrl = "https://msedgedriver.microsoft.com/LATEST_RELEASE_$($edgeVersion.Major)_WINDOWS"
|
||||
$versionInfoFile = Invoke-DownloadWithRetry -Url $versionInfoUrl -Path "$edgeDriverPath\versioninfo.txt"
|
||||
$latestVersion = Get-Content -Path $versionInfoFile
|
||||
|
||||
Write-Host "Download Microsoft Edge WebDriver..."
|
||||
$downloadUrl = "https://msedgedriver.azureedge.net/$latestVersion/edgedriver_win64.zip"
|
||||
$downloadUrl = "https://msedgedriver.microsoft.com/$latestVersion/edgedriver_win64.zip"
|
||||
$archivePath = Invoke-DownloadWithRetry $downloadUrl
|
||||
|
||||
Write-Host "Expand Microsoft Edge WebDriver archive..."
|
||||
|
||||
Reference in New Issue
Block a user