dotnet-installer/eng/pipelines/templates/steps/vmr-prepare.yml
Alexander Köplinger e3126dc9d9
Skip checking out vmr branch except when syncing (#18526)
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
2024-02-07 14:03:19 +00:00

18 lines
No EOL
558 B
YAML

### These steps clone the VMR (https://github.com/dotnet/dotnet) into $(Agent.BuildDirectory)/vmr for installer
parameters:
- name: vmrBranch
displayName: dotnet/dotnet branch to use
type: string
steps:
- checkout: vmr
displayName: Clone dotnet/dotnet
path: vmr
clean: true
- script: |
git checkout --track origin/${{ parameters.vmrBranch }}
echo "##vso[task.setvariable variable=vmrBranch]${{ parameters.vmrBranch }}"
displayName: Check out ${{ parameters.vmrBranch }}
workingDirectory: $(Agent.BuildDirectory)/vmr