dotnet-installer/eng/vmr-synchronization.yml
Přemek Vysoký 01edbc3965
Add a pipeline for automated VMR synchronization (#14805)
Adds a pipeline that will trigger on main commits and synchronize the [VMR](https://github.com/dotnet/dotnet).
The pipeline has 2 parameters:
- What commit of installer to sync to (defaults to commit that triggered the build)
- What branch of the VMR it pushes to (defaults to branch that triggered the build)
2022-10-27 12:08:50 +00:00

41 lines
927 B
YAML

### This pipeline synchronizes code from product repositories into the VMR (https://github.com/dotnet/dotnet)
parameters:
- name: targetRef
displayName: Target revision in dotnet/installer to synchronize
type: string
default: $(Build.SourceVersion)
- name: vmrBranch
displayName: dotnet/dotnet branch to use
type: string
default: $(Build.SourceBranchName)
trigger:
branches:
include:
- main
pr: none
resources:
repositories:
- repository: vmr
type: github
name: dotnet/dotnet
endpoint: dotnet
variables:
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- group: DotNetBot-GitHub
- ${{ else }}:
- name: BotAccount-dotnet-bot-repo-PAT
value: N/A
jobs:
- template: ./pipelines/templates/jobs/vmr-synchronization.yml
parameters:
targetRef: ${{ parameters.targetRef }}
vmrBranch: ${{ parameters.vmrBranch }}
vmrToken: $(BotAccount-dotnet-bot-repo-PAT)