Skip to content

Commit 2d594a9

Browse files
azure-sdkbenbp
andauthored
Use write-output for matrix script to support upstream callers (#46989)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent 476fc56 commit 2d594a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eng/common/scripts/job-matrix/Create-JobMatrix.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ LogGroupEnd
5454
$serialized = SerializePipelineMatrix $matrix
5555

5656
Write-Host "Generated matrix:"
57-
Write-Host $serialized.pretty
57+
58+
# Write-Output required to support other scripts that call this script directly
59+
Write-Output $serialized.pretty
5860

5961
if ($CI) {
6062
Write-Output "##vso[task.setVariable variable=matrix;isOutput=true]$($serialized.compressed)"

0 commit comments

Comments
 (0)