return vmr sync on prs
This commit is contained in:
parent
8e21d8220d
commit
5c7188b67b
2 changed files with 20 additions and 1 deletions
18
.vsts-ci.yml
18
.vsts-ci.yml
|
@ -10,6 +10,13 @@ trigger:
|
||||||
- internal/release/6.*
|
- internal/release/6.*
|
||||||
- internal/release/7.*
|
- internal/release/7.*
|
||||||
|
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: vmr
|
||||||
|
type: github
|
||||||
|
name: dotnet/dotnet
|
||||||
|
endpoint: dotnet
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: vmrBranch
|
- name: vmrBranch
|
||||||
displayName: dotnet/dotnet branch to push to
|
displayName: dotnet/dotnet branch to push to
|
||||||
|
@ -372,6 +379,17 @@ stages:
|
||||||
vmrBranch: ${{ variables.VmrBranch }}
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
isBuiltFromVmr: false
|
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.
|
||||||
|
- ${{ if and(eq(variables['Build.Reason'], 'PullRequest'), parameters.disableVmrBuild) }}:
|
||||||
|
- stage: Synchronize_VMR
|
||||||
|
displayName: Synchronize VMR
|
||||||
|
dependsOn: []
|
||||||
|
jobs:
|
||||||
|
- template: eng/pipelines/templates/jobs/vmr-synchronization.yml
|
||||||
|
parameters:
|
||||||
|
vmrBranch: ${{ variables.VmrBranch }}
|
||||||
|
|
||||||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
- stage: Publish
|
- stage: Publish
|
||||||
dependsOn:
|
dependsOn:
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
|
pr: none
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
batch: true
|
batch: true
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- main
|
- main
|
||||||
- master
|
|
||||||
- release/*
|
- release/*
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue