Skip to content

Commit

Permalink
rm unecessary assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Nov 18, 2024
1 parent aa3a34a commit 9073c73
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,20 @@ jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.examples }}
matrix: ${{ steps.list-examples.outputs.examples }}
steps:
- uses: actions/checkout@v4
- name: List examples
id: list-examples
run: |
echo "examples=$(ls -d examples/*/ | xargs -n 1 basename | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
- name: Set Matrix
id: set-matrix
run: |
echo "examples=${{ steps.list-examples.outputs.examples }}" >> $GITHUB_OUTPUT
build-examples:
needs: generate-matrix
runs-on: ubuntu-latest
strategy:
matrix:
examples: ${{ fromJSON(needs.generate-matrix.outputs.examples) }}
example: ${{ fromJSON(needs.generate-matrix.outputs.examples) }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down

0 comments on commit 9073c73

Please sign in to comment.