Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mShan0 committed Jun 5, 2023
1 parent aed97a6 commit a449442
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,16 @@ jobs:
$exe_link = 'https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SQLServer2022-DEV-x64-ENU.exe'
$box_link = 'https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SQLServer2022-DEV-x64-ENU.box'
$update_link = 'https://www.microsoft.com/en-us/download/confirmation.aspx?id=105013'
$update_download_link = [System.Uri]::new(((Invoke-WebRequest -Uri $update_link).Links.href | Where-Object {$_ -like 'https://download.microsoft.com/*'}))
}
'2019' {
$exe_link = 'https://download.microsoft.com/download/8/4/c/84c6c430-e0f5-476d-bf43-eaaa222a72e0/SQLServer2019-DEV-x64-ENU.exe'
$box_link = 'https://download.microsoft.com/download/8/4/c/84c6c430-e0f5-476d-bf43-eaaa222a72e0/SQLServer2019-DEV-x64-ENU.box'
$update_link = 'https://www.microsoft.com/en-us/download/confirmation.aspx?id=100809'
$update_download_link = [System.Uri]::new(((Invoke-WebRequest -Uri $update_link).Links.href | Where-Object {$_ -like 'https://download.microsoft.com/*'}))
}
'2017' {
$exe_link = 'https://download.microsoft.com/download/E/F/2/EF23C21D-7860-4F05-88CE-39AA114B014B/SQLServer2017-DEV-x64-ENU.exe'
$box_link = 'https://download.microsoft.com/download/E/F/2/EF23C21D-7860-4F05-88CE-39AA114B014B/SQLServer2017-DEV-x64-ENU.box'
$update_link = 'https://www.microsoft.com/en-us/download/confirmation.aspx?id=56128'
$update_download_link = [System.Uri]::new(((Invoke-WebRequest -Uri $update_link).Links.href | Where-Object {$_ -like 'https://download.microsoft.com/*'}))
}
'2016' {
$exe_link = 'https://download.microsoft.com/download/4/1/A/41AD6EDE-9794-44E3-B3D5-A1AF62CD7A6F/sql16_sp2_dlc/en-us/SQLServer2016SP2-FullSlipstream-DEV-x64-ENU.exe'
Expand All @@ -226,6 +223,10 @@ jobs:
}
}
if (${{ matrix.mssql-version }} -ne '2016') {
$update_download_link = [System.Uri]::new(((Invoke-WebRequest -Uri $update_link).Links.href | Where-Object {$_ -like 'https://download.microsoft.com/*'}))
}
Invoke-WebRequest -Uri $exe_link -OutFile sqlsetup.exe
Invoke-WebRequest -Uri $box_link -OutFile sqlsetup.box
Invoke-WebRequest -Uri $update_download_link -Outfile sqlupdate.exe
Expand Down

0 comments on commit a449442

Please sign in to comment.