Skip to content

Commit

Permalink
adding json format
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 10, 2023
1 parent f0a8c14 commit aa14592
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-close-delete-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
steps:
- id: set-matrix
run: |
$slots = '${{ env.SLOT_NAME }}' -join ','
$slot2 = $slots -replace '\\"', ''
$slot3 = $slot2 -replace ',',', '
echo "matrix=$('["112","113"]')" >> $env:GITHUB_OUTPUT
$slotsArray = '${{ env.SLOT_NAME }}' -split ' '
$SlotsInJson = $slotsArray | ConvertTo-Json -Compress
echo $SlotsInJson
echo "matrix=$(SlotsInJson)" >> $env:GITHUB_OUTPUT
- id: just-for-output
run: |
Expand Down

0 comments on commit aa14592

Please sign in to comment.