Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update notice-generation.ps1 to fix pipeline Issue #2151

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/notice-generation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ param (
# Download and save the ChilliCream License 1.0 from ChilliCream/graphql-platform GitHub repo
$chiliCreamLicenseSavePath = "$BuildArtifactStagingDir/chillicreamlicense.txt"
$chiliCreamLicenseMetadataURL = "https://raw.githubusercontent.com/ChilliCream/graphql-platform/main/website/src/basic/licensing/chillicream-license.md"
Invoke-WebRequest $chiliCreamLicenseMetadataURL `
| Select-Object -ExpandProperty Content `
| Out-File $chiliCreamLicenseSavePath
Invoke-WebRequest $chiliCreamLicenseMetadataURL -UseBasicParsing |
Select-Object -ExpandProperty Content |
Out-File $chiliCreamLicenseSavePath

# Download and save the Microsoft.Data.SqlClient.SNI.runtime license
$sqlClientSNILicenseSavePath = "$BuildArtifactStagingDir/sqlclient_sni_runtime.txt"
$sqlClientSNILicenseMetadataURL = "https://www.nuget.org/packages/Microsoft.Data.SqlClient.SNI.runtime/5.0.1/License"
$pageContent = Invoke-WebRequest $sqlClientSNILicenseMetadataURL
$pageContent = Invoke-WebRequest $sqlClientSNILicenseMetadataURL -UseBasicParsing

# Regular expression with three capture groups.
# Capture Group 1: HTML tag which indicates start of license text
Expand Down