File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 20
20
env :
21
21
PYTHON_VERSION : ${{ vars.PYTHON_VERSION }}
22
22
outputs :
23
- matrix : ${{ steps.get-diff.outputs.matrix }}
23
+ parent_image_type : ${{ steps.get-diff.outputs.parent_image_type }}
24
+ include : ${{ steps.get-diff.outputs.include }}
24
25
steps :
25
26
- name : Checkout Repository
26
27
uses : actions/checkout@v4
49
50
env :
50
51
PYTHON_VERSION : ${{ vars.PYTHON_VERSION }}
51
52
strategy :
52
- matrix : ${{ fromJson(needs.pi-diff.outputs.matrix) }}
53
+ matrix :
54
+ parent_image_type : ${{ fromJson(needs.pi-diff.outputs.parent_image_type) }}
55
+ include : ${{ fromJson(needs.pi-diff.outputs.include) }}
53
56
steps :
54
57
- name : Print matrix values - ${{ matrix.parent_image_type }}
55
58
run : echo "${{ toJson(matrix) }}"
Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ for parent_image_type in "${UPDATED_PARENT_TYPES[@]}"; do
38
38
done
39
39
40
40
MATRIX=' {"parent_image_type": [' ${PARENT_IMAGE_TYPES::- 1} ' ],"include": [' ${INCLUDES::- 1} ' ]}'
41
- echo $MATRIX | jq -c --indent 2 ' .'
42
- echo " matrix='$MATRIX '" >> $GITHUB_OUTPUT
41
+ echo $MATRIX | jq -C --indent 2 ' .'
42
+ echo " parent_image_type='[${PARENT_IMAGE_TYPES::- 1} ]'" >> $GITHUB_OUTPUT
43
+ echo " include='[${INCLUDES::- 1} ]'" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments