File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,11 @@ jobs:
96
96
git push origin codegen/${{ parameters.ServiceName }} --force;
97
97
displayName: Create codegen/${{ parameters.ServiceName }} branch
98
98
- pwsh : |
99
- $Title = "Migrate ${{ parameters.ServiceName }} from generation to ${{ parameters.TargetBranch }}"
99
+ $SourceBranch = "$(Build.SourceBranch)"
100
+ $SourceBranch = $SourceBranch.Replace("refs/heads/", "")
101
+ $Title = "Migrate ${{ parameters.ServiceName }} from $SourceBranch to ${{ parameters.TargetBranch }}"
100
102
$HeadBranch = "codegen/${{ parameters.ServiceName }}"
101
103
$BaseBranch = "${{ parameters.TargetBranch }}"
102
- $SourceBranch = "$(Build.SourceBranch)"
103
- $SourceBranch = $BaseBranch.Replace("refs/heads/", "")
104
104
$Description = "Migrate ${{ parameters.ServiceName }} from $SourceBranch to ${{ parameters.TargetBranch }}"
105
105
./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(GithubToken) -Description $Description
106
106
displayName: Create PR to main branch
You can’t perform that action at this time.
0 commit comments