From c0d2e3a3bd977982ecb186d435cd4eace4bd13bc Mon Sep 17 00:00:00 2001 From: "Aman Kumar [SSW]" <71385247+amankumarrr@users.noreply.github.com> Date: Wed, 9 Aug 2023 16:48:54 +1000 Subject: [PATCH] compressing the string --- .github/workflows/check-active-prs-and-slots.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-active-prs-and-slots.yml b/.github/workflows/check-active-prs-and-slots.yml index 24abe6fd6d..caa19e1f11 100644 --- a/.github/workflows/check-active-prs-and-slots.yml +++ b/.github/workflows/check-active-prs-and-slots.yml @@ -90,11 +90,11 @@ jobs: $SlotIDs = $SlotsWithoutPR -split ' ' $ListOfSlots = $SlotsWithoutPR -join ', ' Write-Host "⚡- These slots need to be deleted : $ListOfSlots" - $JSONSlotIDs = @{slots=$SlotIDs} | ConvertTo-Json + $JSONSlotIDs = @{slots=$SlotIDs} | ConvertTo-Json -Compress $JsonWithBackslash = $JSONSlotIDs -replace '"', '\"' echo $JsonWithBackslash #TODO: Currently, we are passing single id, should be passed as an array of IDs - echo "SlotID=${JsonWithBackslash}" >> $GITHUB_OUTPUT + echo "SlotID=${JsonWithBackslash}" >> $env:GITHUB_OUTPUT } else { Write-Host "✅ - Some PRs have not their slot deployed!" }