Skip to content

Commit fe5ba9b

Browse files
authored
Update test-loop.yml
1 parent 71c2b0e commit fe5ba9b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test-loop.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@ jobs:
4646
print-output:
4747
runs-on: ubuntu-latest
4848
needs: define-matrix
49+
50+
outputs:
51+
project-json-values: ${{ steps.convert-values.outputs.project-json-values }}
52+
4953
steps:
54+
- name: Convert values
55+
id: convert-values
56+
run: |
57+
echo "project-json-values=(${{ toJson(needs.define-matrix.outputs.project-string) }} | jq -r '.include[].project')" >> $GITHUB_ENV
58+
5059
- name: Print colors variable
5160
run: |
5261
echo ${{ needs.define-matrix.outputs.colors }}
@@ -55,14 +64,15 @@ jobs:
5564
run: |
5665
echo ${{ toJson(needs.define-matrix.outputs.project-string) }}
5766
echo ${{ toJson(needs.define-matrix.outputs.project-string) }} | jq -r '.include[].project'
58-
echo "includes:" $(echo $COUNT) }}
67+
echo ${{ project-json-values }}
68+
# echo "includes:" $(echo $COUNT) }}
5969
# echo "projects:" $(echo $COUNT | jq -r 'include[].project')
6070
# echo ${{ toJson(needs.define-matrix.outputs.project-string) }}
6171
# echo ${{ toJson(needs.define-matrix.outputs.project-string) }}
6272
# echo ${{ toJson(needs.define-matrix.outputs.project-string) }}
6373
# echo ${{ toJson(needs.define-matrix.outputs.project-string) }}
6474
env:
65-
COUNT: ${{ toJson(needs.define-matrix.outputs.project-string) | jq -r '.include[].project' }}
75+
COUNT: ${{ toJson(needs.define-matrix.outputs.project-string) }}
6676
# INCLUDES: ${{ toJson(needs.define-matrix.outputs.project-string) }}
6777
# PROJECTS: ${{ toJson(needs.define-matrix.outputs.project-string[0].projects) }}
6878
# CONFIGS: ${{ toJson(needs.define-matrix.outputs.project-string[0]).configs }}

0 commit comments

Comments
 (0)