Minor tweaks to update scripts
This commit is contained in:
parent
b67b5586f2
commit
c872502ef1
|
|
@ -84,15 +84,16 @@ if (-not $PSCmdlet.ShouldContinue("Continue?", "This will apply tags to all subm
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$universeTag = Get-PackageVersion $repoRoot
|
||||||
|
New-GitTag $repoRoot $universeTag -WhatIf:$WhatIfPreference
|
||||||
|
|
||||||
$tags = @([pscustomobject] @{
|
$tags = @([pscustomobject] @{
|
||||||
repo = $(git config remote.origin.url)
|
repo = $(git config remote.origin.url)
|
||||||
tag = $universeTag
|
tag = $universeTag
|
||||||
commit = $(git rev-parse HEAD)
|
commit = $(git rev-parse HEAD)
|
||||||
})
|
})
|
||||||
|
|
||||||
$universeTag = Get-PackageVersion $repoRoot
|
|
||||||
New-GitTag $repoRoot $universeTag -WhatIf:$WhatIfPreference
|
|
||||||
|
|
||||||
Get-Submodules $repoRoot | ForEach-Object {
|
Get-Submodules $repoRoot | ForEach-Object {
|
||||||
$modPath = $_.path
|
$modPath = $_.path
|
||||||
$module = $_.module
|
$module = $_.module
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@
|
||||||
Additional arguments to pass into git-commit
|
Additional arguments to pass into git-commit
|
||||||
.PARAMETER NoCommit
|
.PARAMETER NoCommit
|
||||||
Make changes without executing git-commit
|
Make changes without executing git-commit
|
||||||
|
.PARAMETER ToolsSource
|
||||||
|
The location of the build tools
|
||||||
.PARAMETER Force
|
.PARAMETER Force
|
||||||
Specified this to make a commit with any changes
|
Specified this to make a commit with any changes
|
||||||
#>
|
#>
|
||||||
|
|
@ -22,6 +24,7 @@ param(
|
||||||
[string]$GitAuthorName = $null,
|
[string]$GitAuthorName = $null,
|
||||||
[string]$GitAuthorEmail = $null,
|
[string]$GitAuthorEmail = $null,
|
||||||
[string[]]$GitCommitArgs = @(),
|
[string[]]$GitCommitArgs = @(),
|
||||||
|
[string]$ToolsSource = 'https://aspnetcore.blob.core.windows.net/buildtools',
|
||||||
[switch]$NoCommit,
|
[switch]$NoCommit,
|
||||||
[switch]$Force
|
[switch]$Force
|
||||||
)
|
)
|
||||||
|
|
@ -54,7 +57,7 @@ try {
|
||||||
|
|
||||||
$oldVersion = Get-KoreBuildVersion
|
$oldVersion = Get-KoreBuildVersion
|
||||||
|
|
||||||
& "$RepoRoot/run.ps1" -Update -Command noop | Out-Null
|
& "$RepoRoot/run.ps1" -Update -ToolsSource $ToolsSource -Command noop | Out-Null
|
||||||
|
|
||||||
$newVersion = Get-KoreBuildVersion
|
$newVersion = Get-KoreBuildVersion
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue