From 9b0a81bf63a5526e9b964f511883c0fa03873305 Mon Sep 17 00:00:00 2001 From: Arlo Date: Tue, 26 Aug 2025 21:56:28 -0500 Subject: [PATCH] Get-Changed-Components: return discrete items instead of comma-separated list --- Get-Changed-Components.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Get-Changed-Components.ps1 b/Get-Changed-Components.ps1 index 8d06acb..2a3018a 100644 --- a/Get-Changed-Components.ps1 +++ b/Get-Changed-Components.ps1 @@ -50,14 +50,13 @@ $retChangedComponents = -not [string]::IsNullOrWhiteSpace($changedComponentFiles $retAllComponents = [string]::IsNullOrWhiteSpace($changedComponentFiles) -or -not [string]::IsNullOrWhiteSpace($otherChanges); if ($retAllComponents) { - return 'all'; + return @('all'); } if ($retChangedComponents) { $names = $changedComponentFiles | ForEach-Object { ($_ -replace '^components/', '') -replace '/.*$', '' } $uniqueNames = $names | Sort-Object -Unique - $changedComponentsList = $uniqueNames -join ',' - return $changedComponentsList + return $uniqueNames } Write-Error "Unhandled code path."