File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11name : ' Test dev container'
2- on : # rebuild any PRs and main branch changes
2+ on :
33 pull_request :
44 push :
55 branches :
66 - develop
77
88jobs :
9- directories : # Job that list subdirectories
9+ directories :
1010 runs-on : ubuntu-latest
1111 outputs :
12- dir : ${{ steps.set-dirs.outputs.dir }} # generate output name dir by using inner step output
12+ dir : ${{ steps.set-dirs.outputs.dir }}
1313 steps :
1414 - uses : actions/checkout@v2
15- - id : set-dirs # Give it an id to handle to get step outputs in the outputs key above
16- run : echo "::set-output name= dir::$(ls -d */ | jq -R -s -c 'split("\n")[:-1]')"
17- # Define step output named dir base on ls command transformed to JSON thanks to jq
15+ - id : set-dirs
16+ run : echo "dir::$(ls -d */ | jq -R -s -c 'split("\n")[:-1]')" >> "$GITHUB_OUTPUT "
17+
1818 loop :
1919 runs-on : ubuntu-latest
20- needs : [directories] # Depends on previous job
20+ needs : [directories]
2121 strategy :
2222 matrix :
23- dir : ${{fromJson(needs.directories.outputs.dir)}} # List matrix strategy from directories dynamically
23+ dir : ${{fromJson(needs.directories.outputs.dir)}}
2424 steps :
2525 - run : echo ${{matrix.dir}}
2626
You can’t perform that action at this time.
0 commit comments