[release/8.0.1xx] Check out correct VMR branch in PR builds (#17274)

This commit is contained in:
Přemek Vysoký 2023-08-29 16:00:21 +02:00 committed by GitHub
parent b0336e3edc
commit fc1b7ba1e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -23,14 +23,14 @@ variables:
value: ${{ replace(parameters.vmrBranch, ' ', '') }}
- ${{ else }}:
- name: VmrBranch
value: ${{ replace(replace(variables['System.PullRequest.TargetBranch'], 'refs/heads/', ''), 'refs/pull/', '') }}
value: release/8.0.1xx
resources:
repositories:
- repository: vmr
type: git
name: dotnet-dotnet
ref: ${{ variables.VmrBranch }}
ref: $(VmrBranch)
stages:
# You can temporarily disable the VMR Build stage by changing the default of disableVmrBuild

View file

@ -22,7 +22,7 @@ variables:
value: ${{ replace(parameters.vmrBranch, ' ', '') }}
- ${{ else }}:
- name: VmrBranch
value: ${{ replace(replace(variables['System.PullRequest.TargetBranch'], 'refs/heads/', ''), 'refs/pull/', '') }}
value: release/8.0.1xx
resources:
repositories:
@ -30,7 +30,7 @@ resources:
type: github
name: dotnet/dotnet
endpoint: dotnet
ref: ${{ variables.VmrBranch }}
ref: $(VmrBranch)
stages:
# You can temporarily disable the VMR Build stage by setting the disableVmrBuild variable