Skip to content

Commit 9f8de16

Browse files
authored
Update test-loop2.yml
1 parent 411f66f commit 9f8de16

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test-loop2.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,19 @@ jobs:
3030
run: |
3131
echo ${{ toJson(needs.define-matrix.outputs.json-project) }}
3232
echo ${{ toJson(needs.define-matrix.outputs.json-project) }} | jq -r '.include[].project'
33+
echo "Running project ${{ toJson(needs.define-matrix.outputs.json-project) }} | jq -r '.include[].project'"
3334
3435
# Job 3: Loop through array
3536
print-array-output:
3637
runs-on: ubuntu-latest
3738
needs: define-matrix
3839

3940
strategy:
40-
matrix: ${{ fromJson(needs.define-matrix.outputs.json-project.1.include) }}
41+
matrix: ${{ fromJson(needs.define-matrix.outputs.json-project).include }}
4142

4243
steps:
4344
- name: Print project-json variable
4445
id: print-array-item
4546
run: |
46-
echo ${{ matrix.include.project }}
47-
echo ${{ matrix }} | jq -r '.include[].project'
47+
echo ${{ matrix.project }}
48+
echo ${{ matrix }} | jq -r '.project'

0 commit comments

Comments
 (0)