From aed97a6a9eddc7324d88d9aeb70e4b0579e93fc3 Mon Sep 17 00:00:00 2001 From: mShan0 <96149598+mShan0@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:05:14 -0700 Subject: [PATCH] syntax fix --- .github/workflows/nodejs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2665630f8..c64b7b85b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -201,19 +201,19 @@ 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/*'}) + $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/*'}) + $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/*'}) + $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'