Skip to content

Commit

Permalink
adding listofslotsFromFirst job
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 10, 2023
1 parent 09ea143 commit f0a8c14
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 @@ -88,13 +88,13 @@ jobs:
$SlotsWithoutPR = $SlotList | Where-Object { $_ -notin $PRList }
if ( $SlotsWithoutPR.Length -gt 0 ) {
$SlotIDs = $SlotsWithoutPR -split ' '
$ListOfSlots = $SlotsWithoutPR -join ', '
$ListOfSlots = $SlotsWithoutPR -join ' '
Write-Host "⚡- These slots need to be deleted : $ListOfSlots"
$JSONSlotIDs = $SlotIDs | ConvertTo-Json -Compress
$JsonWithBackslash = $JSONSlotIDs -replace '"', '\"'
echo $JSONSlotIDs
#TODO: Currently, we are passing single id, should be passed as an array of IDs
echo "SlotID=$(JSONSlotIDs)" >> $env:GITHUB_OUTPUT
echo "SlotID=$ListOfSlots" >> $env:GITHUB_OUTPUT
} else {
Write-Host "✅ - Some PRs have not their slot deployed!"
}
Expand Down

0 comments on commit f0a8c14

Please sign in to comment.