Only push main
and release/*
branches to the VMR (#15144)
This commit is contained in:
parent
6b37d32420
commit
60eee7f5b8
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ jobs:
|
||||||
targetRef: ${{ parameters.targetRef }}
|
targetRef: ${{ parameters.targetRef }}
|
||||||
|
|
||||||
# For official builds, push the changes to the VMR
|
# For official builds, push the changes to the VMR
|
||||||
- ${{ if and(not(parameters.noPush), not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['System.TeamProject'], 'internal')) }}:
|
# Push only main and release branches
|
||||||
|
- ${{ if and(not(parameters.noPush), or(eq(parameters.vmrBranch, 'main'), startswith(parameters.vmrBranch, 'refs/heads/release/'), startswith(parameters.vmrBranch, 'release/')), not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['System.TeamProject'], 'internal')) }}:
|
||||||
- script: |
|
- script: |
|
||||||
set -x
|
set -x
|
||||||
git config --global user.email 'dotnet-maestro[bot]@users.noreply.github.com' && git config --global user.name 'dotnet-maestro[bot]'
|
git config --global user.email 'dotnet-maestro[bot]@users.noreply.github.com' && git config --global user.name 'dotnet-maestro[bot]'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue