Fix the author of VMR commits (#17759)
This commit is contained in:
parent
4b111cdb0d
commit
03b1532ebf
2 changed files with 7 additions and 6 deletions
|
@ -56,12 +56,6 @@ jobs:
|
|||
vmrBranch: ${{ parameters.vmrBranch }}
|
||||
targetRef: ${{ parameters.targetRef }}
|
||||
|
||||
- script: |
|
||||
git config --global user.name "dotnet-maestro[bot]"
|
||||
git config --global user.email "dotnet-maestro[bot]@users.noreply.github.com"
|
||||
displayName: Set git author to dotnet-maestro[bot]
|
||||
|
||||
|
||||
- ${{ if and(not(parameters.noPush), not(in(variables['Build.Reason'], 'PullRequest')), eq(variables['System.TeamProject'], 'internal')) }}:
|
||||
# Push main and release branches to the public VMR
|
||||
- ${{ if or(eq(parameters.vmrBranch, 'main'), startsWith(parameters.vmrBranch, 'release/')) }}:
|
||||
|
|
|
@ -26,6 +26,7 @@ steps:
|
|||
# we still pull the commit into the temporary installer clone to use it during the sync.
|
||||
- script: |
|
||||
git branch installer-head
|
||||
git rev-parse HEAD
|
||||
displayName: Label PR commit
|
||||
workingDirectory: $(Agent.BuildDirectory)/installer
|
||||
|
||||
|
@ -35,6 +36,12 @@ steps:
|
|||
displayName: Prepare branch ${{ parameters.vmrBranch }}
|
||||
workingDirectory: ${{ parameters.vmrPath }}
|
||||
|
||||
- script: |
|
||||
git config --global user.name "dotnet-maestro[bot]"
|
||||
git config --global user.email "dotnet-maestro[bot]@users.noreply.github.com"
|
||||
displayName: Set git author to dotnet-maestro[bot]
|
||||
workingDirectory: ${{ parameters.vmrPath }}
|
||||
|
||||
- script: >
|
||||
./eng/vmr-sync.sh
|
||||
--vmr ${{ parameters.vmrPath }}
|
||||
|
|
Loading…
Reference in a new issue