Skip to content

Commit 72063ac

Browse files
committed
fix: outputting matrix
1 parent ec5f830 commit 72063ac

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/pi_build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
env:
2121
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
2222
outputs:
23-
parent_image_type: ${{ steps.get-diff.outputs.parent_image_type }}
2423
include: ${{ steps.get-diff.outputs.include }}
2524
steps:
2625
- name: Checkout Repository
@@ -51,7 +50,6 @@ jobs:
5150
PYTHON_VERSION: ${{ vars.PYTHON_VERSION }}
5251
strategy:
5352
matrix:
54-
parent_image_type: ${{ fromJson(needs.pi-diff.outputs.parent_image_type) }}
5553
include: ${{ fromJson(needs.pi-diff.outputs.include) }}
5654
steps:
5755
- name: Print matrix values - ${{ matrix.parent_image_type }}

pi/diff.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,14 @@ while IFS= read -r file; do
2727

2828
done <<< "$UPDATED_FILES"
2929

30-
PARENT_IMAGE_TYPES=""
3130
INCLUDES=""
3231
for parent_image_type in "${UPDATED_PARENT_TYPES[@]}"; do
33-
PARENT_IMAGE_TYPES+='"'$parent_image_type'",'
3432
eval 'APP_REPOS=( "${'$(echo ${parent_image_type} | sed "s|-|_|g")'[@]}" )'
3533
for app in "${APP_REPOS[@]}"; do
3634
INCLUDES+='{ "parent_image_type": "'${parent_image_type}'", "app": "'${app}'" },'
3735
done
3836
done
3937

40-
MATRIX='{"parent_image_type": ['${PARENT_IMAGE_TYPES::-1}'],"include": ['${INCLUDES::-1}']}'
38+
MATRIX='{"include": ['${INCLUDES::-1}']}'
4139
echo $MATRIX | jq -C --indent 2 '.'
42-
echo "parent_image_type=[${PARENT_IMAGE_TYPES::-1}]" >> $GITHUB_OUTPUT
4340
echo "include=[${INCLUDES::-1}]" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)