Support release branches based on the forward slash separator (#8903)

This commit is contained in:
Travis Plunk
2019-02-19 10:47:39 -08:00
committed by GitHub
parent 60ab54d737
commit af4e8117df
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ Please **only** use this template if you are a maintainer.
- [ ] Verify that `PowerShell-Native` has been updated/released as needed.
- [ ] Check for `PowerShellGet` and `PackageManagement` release plans.
- [ ] Start process to sync Azure DevOps artifacts feed such as modules and NuGet packages.
- [ ] Create a private branch named `release-v6.x.x` in Azure Dev Ops repository.
- [ ] Create a private branch named `release/v6.x.x` in Azure DevOps repository.
All release related changes should happen in this branch.
- [ ] Prepare packages
- [ ] Build release packages
+2 -2
View File
@@ -19,10 +19,10 @@ $branchOnly = $branchOnly -replace '[_\-]'
if($ReleaseTag -eq 'fromBranch' -or !$ReleaseTag)
{
# Branch is named release-<semver>
if($Branch -match '^.*(release-)')
if($Branch -match '^.*(release[-/])')
{
Write-verbose "release branch:" -verbose
$releaseTag = $Branch -replace '^.*(release-)'
$releaseTag = $Branch -replace '^.*(release[-/])'
$vstsCommandString = "vso[task.setvariable variable=$Variable]$releaseTag"
Write-Verbose -Message "setting $Variable to $releaseTag" -Verbose
Write-Host -Object "##$vstsCommandString"