Skip to content

Commit

Permalink
fix gen-slither-matrix workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Jun 24, 2024
1 parent b1854d6 commit a1de7ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: get list of packages
id: get-dirs
run: |
dirs=$(ls -1 packages)
dirs_json=$(printf '%s\n' "$dirs" | jq -R . | jq -s .)
echo "$dirs_json" >> $GITHUB_ENV
echo "::set-output name=dirs_json::$dirs_json"
- name: set matrix
run: echo "::set-output name=matrix::${{ env.dirs_json }}"
run: echo "::set-output name=matrix::${{ steps.get-dirs.outputs.dirs_json }}"

slither:
needs: gen-slither-matrix
Expand All @@ -88,7 +89,7 @@ jobs:
security-events: write
strategy:
matrix:
dir: ${{ fromJson(needs.gen-slither.matrix.outputs.matrix) }}
dir: ${{ fromJson(needs.gen-slither-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Run slither
Expand Down

0 comments on commit a1de7ef

Please sign in to comment.