Fix TPA map hash calculation. (#288)
[platform/upstream/coreclr.git] / UpdatePublishedVersions.ps1
1 #
2 # Copyright (c) .NET Foundation and contributors. All rights reserved.
3 # Licensed under the MIT license. See LICENSE file in the project root for full license information.
4 #
5
6 # This script updates the dotnet/versions repository based on a set of packages. It directly
7 # commits the changes using GitHub APIs.
8
9 param(
10     [Parameter(Mandatory=$true)][string]$gitHubUser,
11     [Parameter(Mandatory=$true)][string]$gitHubEmail,
12     [Parameter(Mandatory=$true)][string]$gitHubAuthToken,
13     [Parameter(Mandatory=$true)][string]$versionsRepoOwner,
14     [Parameter(Mandatory=$true)][string]$versionsRepo,
15     [Parameter(Mandatory=$true)][string]$versionsRepoPath,
16     # A pattern matching all packages in the set that the versions repository should be set to.
17     [Parameter(Mandatory=$true)][string]$nupkgPath)
18
19 & "$PSScriptRoot\run.cmd" build -- tests\build.proj /t:UpdatePublishedVersions `
20     /p:GitHubUser="$gitHubUser" `
21     /p:GitHubEmail="$gitHubEmail" `
22     /p:GitHubAuthToken="$gitHubAuthToken" `
23     /p:VersionsRepoOwner="$versionsRepoOwner" `
24     /p:VersionsRepo="$versionsRepo" `
25     /p:VersionsRepoPath="$versionsRepoPath" `
26     /p:ShippedNuGetPackageGlobPath="$nupkgPath"