mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] pin mysql release version in toolset (#4590)
This commit is contained in:
@@ -11,9 +11,9 @@ $ArgumentList = ("/install", "/quiet", "/norestart")
|
||||
Install-Binary -Url $InstallerURI -Name $InstallerName -ArgumentList $ArgumentList
|
||||
|
||||
## Downloading mysql
|
||||
$MysqlMajorMinor = (Get-ToolsetContent).Mysql.version
|
||||
$MysqlFullVersion = ((Invoke-WebRequest -Uri https://dev.mysql.com/downloads/mysql/${MysqlMajorMinor}.html).Content | Select-String -Pattern "${MysqlMajorMinor}\.\d+").Matches.Value
|
||||
$MysqlVersionUrl = "https://dev.mysql.com/get/Downloads/MySQL-${MysqlMajorMinor}/mysql-${MysqlFullVersion}-winx64.zip"
|
||||
$MysqlMajorVersion = (Get-ToolsetContent).mysql.major_version
|
||||
$MysqlFullVersion = (Get-ToolsetContent).mysql.full_version
|
||||
$MysqlVersionUrl = "https://dev.mysql.com/get/Downloads/MySQL-${MysqlMajorVersion}/mysql-${MysqlFullVersion}-winx64.zip"
|
||||
|
||||
$MysqlArchPath = Start-DownloadWithRetry -Url $MysqlVersionUrl -Name "mysql.zip"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user