|
@@ -22,6 +22,9 @@ $coreFxRepo = "dotnet/corefx"
|
|
|
$coreSetupVersions = "$githubRaw/$versionsRepo/$versionsBranch/build-info/$coreSetupRepo/master/Latest_Packages.txt"
|
|
$coreSetupVersions = "$githubRaw/$versionsRepo/$versionsBranch/build-info/$coreSetupRepo/master/Latest_Packages.txt"
|
|
|
|
|
|
|
|
$tempDir = "$PSScriptRoot/../obj"
|
|
$tempDir = "$PSScriptRoot/../obj"
|
|
|
|
|
+
|
|
|
|
|
+mkdir -Path $tempDir -ErrorAction Ignore
|
|
|
|
|
+
|
|
|
$localCoreSetupVersions = "$tempDir/coresetup.packages"
|
|
$localCoreSetupVersions = "$tempDir/coresetup.packages"
|
|
|
Write-Host "Downloading $coreSetupVersions to $localCoreSetupVersions"
|
|
Write-Host "Downloading $coreSetupVersions to $localCoreSetupVersions"
|
|
|
Invoke-WebRequest -OutFile $localCoreSetupVersions -Uri $coreSetupVersions
|
|
Invoke-WebRequest -OutFile $localCoreSetupVersions -Uri $coreSetupVersions
|
|
@@ -103,19 +106,18 @@ $depsPath = Resolve-Path "$PSScriptRoot/../build/dependencies.props"
|
|
|
Write-Host "Loading deps from $depsPath"
|
|
Write-Host "Loading deps from $depsPath"
|
|
|
[xml] $dependencies = LoadXml $depsPath
|
|
[xml] $dependencies = LoadXml $depsPath
|
|
|
|
|
|
|
|
-$remote = "origin"
|
|
|
|
|
$baseBranch = "dev"
|
|
$baseBranch = "dev"
|
|
|
|
|
|
|
|
$currentBranch = Invoke-Block { & git rev-parse --abbrev-ref HEAD }
|
|
$currentBranch = Invoke-Block { & git rev-parse --abbrev-ref HEAD }
|
|
|
$destinationBranch = "rybrande/UpgradeDepsTest"
|
|
$destinationBranch = "rybrande/UpgradeDepsTest"
|
|
|
|
|
|
|
|
-Invoke-Block { & git checkout -tb $destinationBranch "$remote/$baseBranch" }
|
|
|
|
|
|
|
+Invoke-Block { & git checkout -tb $destinationBranch "origin/$baseBranch" }
|
|
|
try {
|
|
try {
|
|
|
$updatedVars = UpdateVersions $variables $dependencies $depsPath
|
|
$updatedVars = UpdateVersions $variables $dependencies $depsPath
|
|
|
$body = CommitUpdatedVersions $updatedVars $dependencies $depsPath
|
|
$body = CommitUpdatedVersions $updatedVars $dependencies $depsPath
|
|
|
|
|
|
|
|
if ($body) {
|
|
if ($body) {
|
|
|
- CreatePR $baseBranch $destinationBranch $body $GithubToken
|
|
|
|
|
|
|
+ CreatePR "aspnet" $GithubUsername $baseBranch $destinationBranch $body $GithubToken
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
finally {
|
|
finally {
|