Skip to content

Commit

Permalink
Support release branches based on the forward slash separator (PowerS…
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisEz13 committed Feb 20, 2019
1 parent f9cd498 commit d4848d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/releaseBuild/setReleaseTag.ps1
Expand Up @@ -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"
Expand Down

0 comments on commit d4848d3

Please sign in to comment.