dotnet-installer/eng/pipelines/vmr-sync-internal.yml

37 lines
No EOL
810 B
YAML

pr: none
trigger:
batch: true
branches:
include:
- internal/release/*
exclude:
- internal/release/*.0.2xx
- internal/release/*.0.3xx
- internal/release/*.0.4xx
resources:
repositories:
- repository: vmr
type: git
name: dotnet-dotnet
ref: $(Build.SourceBranch)
parameters:
- name: vmrBranch
displayName: dotnet-dotnet branch to push to
type: string
default: ' '
variables:
- ${{ if ne(parameters.vmrBranch, ' ') }}:
- name: VmrBranch
value: ${{ replace(parameters.vmrBranch, ' ', '') }}
- ${{ else }}:
- name: VmrBranch
value: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/heads/', ''), 'refs/pull/', '') }}
jobs:
- template: templates/jobs/vmr-synchronization.yml
parameters:
vmrBranch: ${{ variables.VmrBranch }}