Skip to content

Commit

Permalink
Adding the values back
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Aug 14, 2023
1 parent 50652d0 commit 6656036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/check-active-prs-and-slots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ jobs:
$slotsExistThatRequireDeletion = $slotList | Where-Object { $_ -notin $prList }
$slotsNeedDeletion = $slotsExistThatRequireDeletion.Length -gt 0
$slotsExistThatRequireDeletion='["112","344"]'
if ( ! $slotsNeedDeletion ) {
echo "✅ - Number of slots are equal to number of active PRs - 🏃 Skipping next step"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr-close-delete-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ jobs:
- name: Converting slots into JSON Formatted Array
id: set-matrix
run: |
$slotIDs = '${{ fromJson(env.SLOT_NAME) }}'
$slotIDs = '${{ env.SLOT_NAME }}' -split ' '
$slotIDsInJSonArray = ConvertTo-Json -Compress @($slotIDs)
echo "matrix=$slotIDsInJSonArray" >> $env:GITHUB_OUTPUT
delete-slot:
runs-on: ubuntu-latest
needs: setting-up-slot-ids
strategy:
matrix:
SLOT_NAME: ${{needs.setting-up-slot-ids.outputs.matrix}}
SLOT_NAME: ${{fromJson(needs.setting-up-slot-ids.outputs.matrix)}}

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 6656036

Please sign in to comment.