Skip to content

Commit

Permalink
Automatically add all packs to packs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmekeev committed Mar 13, 2024
1 parent 8b97a3b commit fd73e9c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/packs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
list-packs:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: echo "::set-output name=matrix::$(ls packs/*.csv | jq -R -s -c 'split("\n")[:-1]')"
run_emulations:
runs-on: ubuntu-latest
strategy:
matrix:
pack: ["packs/cats.csv","packs/elements.csv","packs/famous-art-robberies.csv","packs/harry-potter-and-the-deathly-hallows-part-2.csv","packs/mcdonalds-baby-animals.csv","packs/mcdonalds-minions-rise-of-gru.csv","packs/star-wars-rise-of-the-bounty-hunters.csv","packs/star-wars-starships.csv","packs/the-art-game.csv","packs/the-big-bang-theory.csv"] # ls -1 packs/*.csv | jq -Rsc 'split("\n")[:-1]'
pack: ${{ fromJson(needs.list-packs.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit fd73e9c

Please sign in to comment.