mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Support release branches based on the forward slash separator (#8903)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user