Skip to content

Commit

Permalink
Updating the param to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 9, 2023
1 parent 434fae4 commit 3e7322e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-active-prs-and-slots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ jobs:
$SlotIDs = $SlotsWithoutPR -split ' '
$ListOfSlots = $SlotsWithoutPR -join ', '
Write-Host "⚡- These slots need to be deleted : $ListOfSlots"
$SingleSlotID = $ListOfSlots -split ' '
$JSONSlotIDs = $SlotIDs | ConvertTo-Json
echo $JSONSlotIDs
#TODO: Currently, we are passing single id, should be passed as an array of IDs
echo "SlotID=$SingleSlotID" >> $env:GITHUB_OUTPUT
echo "SlotID=$JSONSlotIDs" >> $env:GITHUB_OUTPUT
} else {
Write-Host "✅ - Some PRs have not their slot deployed!"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-close-delete-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
settingMatrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ toJson(steps.set-matrix.outputs.matrix) }}
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- id: set-matrix
run: |
Expand Down

0 comments on commit 3e7322e

Please sign in to comment.