diff --git a/tools/devops/automation/templates/common/checkout.yml b/tools/devops/automation/templates/common/checkout.yml index 47857abfd2b4..3f7180d7e837 100644 --- a/tools/devops/automation/templates/common/checkout.yml +++ b/tools/devops/automation/templates/common/checkout.yml @@ -14,12 +14,6 @@ parameters: default: HEAD steps: -- pwsh: | - gci env: - $env:BUILD_REPOSITORY_TITLE = ($env:BUILD_REPOSITORY_NAME -split '/')[-1] - Write-Host "##vso[task.setvariable variable=BUILD_REPOSITORY_TITLE;]$env:BUILD_REPOSITORY_TITLE" - gci env: - displayName: 'Set BUILD_REPOSITORY_TITLE' - template: sdk-unified/steps/checkout/v1.yml@yaml-templates parameters: diff --git a/tools/devops/automation/templates/variables/common.yml b/tools/devops/automation/templates/variables/common.yml index 18e2e0c3ba07..dce5a4aaeda1 100644 --- a/tools/devops/automation/templates/variables/common.yml +++ b/tools/devops/automation/templates/variables/common.yml @@ -58,7 +58,7 @@ variables: # the name of our repository - name: BUILD_REPOSITORY_TITLE - value: 'xamarin-macios' + value: ${{ split( $(Build.Repository.Name), '/' )[1] }} # point to the vsdrops that we will be using for the diff uploads. - name: VSDropsPrefix