File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,10 @@ jobs:
144
144
Write-Host "##[endgroup]"
145
145
Write-Host
146
146
}
147
+ $buildId = $(Build.BuildId)
147
148
148
149
Set-Location ..
149
- git checkout -b ' codegen/${{ parameters.scope }}' 'origin/${{ parameters.targetBranch }}'
150
+ git checkout -b " codegen/${{ parameters.scope }}-$buildId" 'origin/${{ parameters.targetBranch }}'
150
151
151
152
- task : PowerShell@2
152
153
displayName : Migrate from generation to target branch
@@ -189,7 +190,8 @@ jobs:
189
190
targetType : inline
190
191
script : |
191
192
$sourceBranch = '$(Build.SourceBranch)'.Replace("refs/heads/", "")
192
- $headBranch = 'codegen/${{ parameters.scope }}'
193
+ $buildId = $(Build.BuildId)
194
+ $headBranch = "codegen/${{ parameters.scope }}-$buildId"
193
195
$baseBranch = '${{ parameters.targetBranch }}'
194
196
git config user.email "[email protected] "
195
197
git config user.name "azure-powershell-bot"
You can’t perform that action at this time.
0 commit comments