Skip to content

Commit

Permalink
compressing the string
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 9, 2023
1 parent 4ce7608 commit c0d2e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-active-prs-and-slots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
}
Expand Down

0 comments on commit c0d2e3a

Please sign in to comment.