Skip to content

Commit 62f98d0

Browse files
fix checkout (Azure#50323)
Co-authored-by: jolov <[email protected]>
1 parent 9e529cd commit 62f98d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eng/common/pipelines/templates/archetype-typespec-emitter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,17 @@ extends:
311311
matrix: $[dependencies.Initialize.outputs['generate_matrix.matrix']]
312312
variables:
313313
matrixArtifactsPath: $(Pipeline.Workspace)/matrix_artifacts
314+
AzureSdkRepoName: $[format('azure-sdk/{0}', split(variables['Build.Repository.Name'], '/')[1])]
314315
steps:
315316
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
316317
parameters:
317318
Paths:
318319
- "/*"
319320
- "!SessionRecords"
321+
Repositories:
322+
- Name: $(AzureSdkRepoName)
323+
Commitish: $(branchName)
324+
WorkingDirectory: $(System.DefaultWorkingDirectory)
320325

321326
- task: UseNode@1
322327
displayName: 'Install Node.js'

0 commit comments

Comments
 (0)