From e08d7fe9c37991eadc07eeeb563d1bc0ba048bb1 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Tue, 24 Apr 2018 08:27:21 -0700 Subject: [PATCH] UpdateDeps to match maestro (#1105) --- scripts/UpdateDependenciesCoreFx.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/UpdateDependenciesCoreFx.ps1 b/scripts/UpdateDependenciesCoreFx.ps1 index 1256092da2..764aecfa5d 100644 --- a/scripts/UpdateDependenciesCoreFx.ps1 +++ b/scripts/UpdateDependenciesCoreFx.ps1 @@ -1,10 +1,11 @@ [CmdletBinding()] param( - [string]$GitHubEmail, - [string]$GitHubUsername, - [string]$GitHubPassword + [string]$GithubEmail, + [string]$GithubUsername, + [string]$GithubToken ) +# This script only works against dev/master at the moment because only master prod-con builds allow you to access their results before the entire chain is finished. $ErrorActionPreference = 'Stop' Import-Module -Scope Local -Force "$PSScriptRoot/common.psm1" @@ -28,7 +29,7 @@ Invoke-WebRequest -OutFile $localCoreSetupVersions -Uri $coreSetupVersions $msNetCoreAppPackageVersion = $null $msNetCoreAppPackageName = "Microsoft.NETCore.App" -Set-GitHubInfo $GitHubPassword $GitHubUsername $GitHubEmail +Set-GitHubInfo $GithubToken $GithubUsername $GithubEmail $variables = @{} @@ -114,7 +115,7 @@ try { $body = CommitUpdatedVersions $updatedVars $dependencies $depsPath if ($body) { - CreatePR $baseBranch $destinationBranch $body $GitHubPassword + CreatePR $baseBranch $destinationBranch $body $GithubToken } } finally {