File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 55 push :
66
77jobs :
8+ list :
9+ runs-on : ubuntu-latest
10+ outputs :
11+ matrix : ${{ steps.gen.outputs.out }}
12+ steps :
13+ - name : clone
14+ uses : actions/checkout@v4
15+ - name : list
16+ id : gen
17+ run : echo "out=$(find . -type d -name 'step??_*' | sed 's|^\./||' | jq -R -s -c 'split("\n") | map(select(length > 0))')" >> $GITHUB_OUTPUT
818 run :
19+ needs : list
920 runs-on : ubuntu-latest
21+ strategy :
22+ matrix :
23+ dir : ${{ fromJson(needs.list.outputs.matrix) }}
1024 steps :
1125 - name : clone
12- uses : actions/checkout@v3
13- - name : step00
14- run : (cd step00_hw; ./run.sh)
15- - name : step01
16- run : (cd step01_cmdline; ./run.sh)
26+ uses : actions/checkout@v4
27+ - name : ${{ matrix.dir }}
28+ run : (cd ${{ matrix.dir }}; ./run.sh)
You can’t perform that action at this time.
0 commit comments