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

41 lines
832 B
YAML
Raw Normal View History

2023-02-01 15:12:20 +01:00
pr: none
2023-02-01 14:40:07 +01:00
trigger:
batch: true
branches:
include:
- main
- release/*
exclude:
- release/*.0.2xx
- release/*.0.3xx
- release/*.0.4xx
2023-02-01 14:40:07 +01:00
resources:
repositories:
- repository: vmr
type: github
name: dotnet/dotnet
endpoint: dotnet
2023-02-02 15:01:28 +01:00
ref: $(Build.SourceBranch)
2023-02-01 14:40:07 +01:00
parameters:
- name: vmrBranch
displayName: dotnet/dotnet branch to push to
type: string
2023-02-08 17:40:25 +01:00
default: ' '
2023-02-01 14:40:07 +01:00
variables:
2023-02-08 17:40:25 +01:00
- ${{ if ne(parameters.vmrBranch, ' ') }}:
2023-02-01 14:52:26 +01:00
- name: VmrBranch
2023-02-08 17:40:25 +01:00
value: ${{ replace(parameters.vmrBranch, ' ', '') }}
2023-02-01 14:52:26 +01:00
- ${{ else }}:
- name: VmrBranch
value: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/heads/', ''), 'refs/pull/', '') }}
2023-02-01 14:40:07 +01:00
2023-02-01 15:14:27 +01:00
jobs:
2023-02-01 14:40:07 +01:00
- template: /eng/pipelines/templates/jobs/vmr-synchronization.yml
parameters:
vmrBranch: ${{ variables.VmrBranch }}
2023-02-01 15:14:27 +01:00
2023-02-01 14:40:07 +01:00