Skip to content

Commit 7678ec2

Browse files
🩹 [CI]: Update Get-TestSuites workflow to output SourceCode and Module test suites as JSON, ensuring compatibility with empty results
1 parent 80553b5 commit 7678ec2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎.github/workflows/Get-TestSuites.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ jobs:
159159
$testSuites | Format-Table -AutoSize | Out-String
160160
}
161161
162-
# Pass the final objects to GitHub Actions output.
163-
Set-GitHubOutput -Name SourceCodeTestSuites -Value $sourceCodeTestSuites
164-
Set-GitHubOutput -Name ModuleTestSuites -Value $testSuites
162+
# Pass the final objects to GitHub Actions output as JSON
163+
Set-GitHubOutput -Name SourceCodeTestSuites -Value ($sourceCodeTestSuites ?? '[]')
164+
Set-GitHubOutput -Name ModuleTestSuites -Value ($testSuites ?? '[]')

0 commit comments

Comments
 (0)