Skip to content

Commit

Permalink
Set Build_Repository_title
Browse files Browse the repository at this point in the history
  • Loading branch information
mcumming authored Feb 23, 2025
1 parent 12d38e2 commit 39f9f1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions tools/devops/automation/templates/common/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tools/devops/automation/templates/variables/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39f9f1c

Please sign in to comment.