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.
6 # This script updates the dotnet/versions repository based on a set of packages. It directly
7 # commits the changes using GitHub APIs.
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)
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"