Skip to content

Commit

Permalink
Generate full tutorial list
Browse files Browse the repository at this point in the history
  • Loading branch information
btjanaka committed Sep 15, 2023
1 parent 0a5576b commit 64ed7da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ jobs:
steps:
- id: set-matrix
run: |
echo "matrix={\"tutorial\": [\"tutorials/arm_repertoire.ipynb\", \"tutorials/lunar_lander.ipynb\"]}" >> $GITHUB_OUTPUT
TUTORIALS=($(ls tutorials/*.ipynb tutorials/*/*.ipynb))
JSON_LIST=""
for x in "${TUTORIALS[@]}"; do JSON_LIST="$JSON_LIST\"$x\","; done
JSON_LIST=${JSON_LIST%","} # Remove extra comma.
echo "matrix={\"tutorial\": [$JSON_LIST]}" >> $GITHUB_OUTPUT
tutorials:
runs-on: ubuntu-latest
needs: tutorials_list
Expand Down

0 comments on commit 64ed7da

Please sign in to comment.