2023-02-07 02:29:39 +00:00
|
|
|
trigger: none
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
- release/*
|
|
|
|
|
|
|
|
parameters:
|
|
|
|
- name: vmrBranch
|
|
|
|
displayName: dotnet/dotnet branch to push to
|
|
|
|
type: string
|
2023-02-09 09:56:45 +00:00
|
|
|
default: ' '
|
2023-02-07 02:29:39 +00:00
|
|
|
|
|
|
|
- name: disableVmrBuild
|
|
|
|
displayName: Skip source-building the VMR
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
|
|
|
|
variables:
|
2023-02-09 09:56:45 +00:00
|
|
|
- ${{ if ne(parameters.vmrBranch, ' ') }}:
|
2023-02-07 02:29:39 +00:00
|
|
|
- name: VmrBranch
|
2023-02-09 09:56:45 +00:00
|
|
|
value: ${{ replace(parameters.vmrBranch, ' ', '') }}
|
2023-02-07 02:29:39 +00:00
|
|
|
- ${{ else }}:
|
|
|
|
- name: VmrBranch
|
2023-08-29 14:00:21 +00:00
|
|
|
value: release/8.0.1xx
|
2023-02-07 02:29:39 +00:00
|
|
|
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: vmr
|
|
|
|
type: github
|
|
|
|
name: dotnet/dotnet
|
|
|
|
endpoint: dotnet
|
2023-08-29 14:00:21 +00:00
|
|
|
ref: $(VmrBranch)
|
2023-02-07 02:29:39 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
# You can temporarily disable the VMR Build stage by setting the disableVmrBuild variable
|
|
|
|
- ${{ if not(parameters.disableVmrBuild) }}:
|
|
|
|
- template: templates/stages/vmr-build.yml
|
|
|
|
parameters:
|
|
|
|
vmrBranch: ${{ variables.VmrBranch }}
|
|
|
|
isBuiltFromVmr: false
|
|
|
|
|
|
|
|
# In case the VMR Build stage is temporarily disabled, the VMR synchronization step is run to validate
|
|
|
|
# that the PR can be merged and later synchronized into the VMR without problems.
|
|
|
|
- ${{ else }}:
|
|
|
|
- stage: Synchronize_VMR
|
|
|
|
displayName: Synchronize VMR
|
|
|
|
dependsOn: []
|
|
|
|
jobs:
|
|
|
|
- template: templates/jobs/vmr-synchronization.yml
|
|
|
|
parameters:
|
|
|
|
vmrBranch: ${{ variables.VmrBranch }}
|
2023-02-27 15:02:25 +00:00
|
|
|
noPush: true
|