Skip to content

Commit ea56194

Browse files
committed
update
1 parent b78a02e commit ea56194

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
name: 'Test dev container'
2-
on: # rebuild any PRs and main branch changes
2+
on:
33
pull_request:
44
push:
55
branches:
66
- develop
77

88
jobs:
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

0 commit comments

Comments
 (0)