Skip to content

Commit

Permalink
chore: use toJSON to generate matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Mar 9, 2024
1 parent 5ad4523 commit 527c407
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,20 @@ jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
matrix: ${{ steps.set-matrix.outputs.plugins }}
steps:
- id: set-matrix
env:
CHUNK: ${{ github.event.client_payload }}
run: |
echo $CHUNK
echo $CHUNK > chunk.json
echo "MATRIX=$(cat ./chunk.json | tr -d '\n\r')" >> $GITHUB_OUTPUT
PLUGINS='${{ toJSON(github.event.client_payload.plugins) }}'
echo ::set-output name=plugins::${PLUGINS}
publish:
runs-on: ubuntu-latest
needs: generate-matrix
strategy:
fail-fast: false
max-parallel: 10 # Don't DDOS the luarocks servers
matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
matrix: ${{ fromJson(needs.generate-matrix.outputs.plugins) }}

steps:
- name: Checkout plugin repository
Expand Down

0 comments on commit 527c407

Please sign in to comment.