Skip to content

Commit

Permalink
adding check to echo the array
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 8, 2023
1 parent a33130b commit 5eca700
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check-active-prs-and-slots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,17 @@ jobs:
if ( $SlotsWithoutPR.Length -gt 0 ) {
$SlotsWithoutPRArray = $SlotsWithoutPR -join ' '
Write-Host "⚡- These slots need to be deleted : $SlotsWithoutPRArray"
echo $SlotsWithoutPRArray
echo "SlotsWithoutPRArray=$SlotsWithoutPRArray" >> $env:GITHUB_OUTPUT
} else {
Write-Host "✅ - Some PRs have not their slot deployed!"
}
deleteSlot:
name: Invoking the flow to delete slots
if: ( ${{ needs.check-pr-slots.outputs.SlotsWithoutPRArray.Length }} -gt 0)
uses: ./.github/workflows/pr-close-delete-env.yml
needs: check-pr-slots
if: ${{ needs.check-pr-slots.outputs.SlotsWithoutPRArray }} != ''
uses: ./.github/workflows/pr-close-delete-env.yml
with:
pullRequestId: ${{ needs.check-pr-slots.outputs.SlotsWithoutPRArray }}
permissions:
Expand Down

0 comments on commit 5eca700

Please sign in to comment.