Skip to content

Commit 76fea8b

Browse files
committed
fix: generate matrix for requirements.txt
1 parent d217174 commit 76fea8b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pi/matrix.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
set -e
44

5-
PR_NUMBER=""
5+
PR_NUMBER="40"
66
SOURCE_SCRIPT="pi/constants.sh"
77
PARENT_IMAGE_TYPE=""
8-
EDIT_DOCKERFILE=false
8+
EDIT_DOCKERFILE=true
99

1010
while getopts t:p:s:d: flag
1111
do
@@ -24,15 +24,14 @@ UPDATED_PARENT_TYPES=()
2424
if [ -n "$PR_NUMBER" ] && [ -z "$PARENT_IMAGE_TYPE" ]; then
2525
UPDATED_FILES=$(gh pr diff $PR_NUMBER --name-only --repo code-kern-ai/refinery-submodule-parent-images)
2626
while IFS= read -r file; do
27-
if [[ $file != requirements/* ]] || [[ $file != *.in ]]; then
27+
if [[ $file != requirements/* ]] || [[ $file != *requirements.txt ]]; then
2828
continue
2929
fi
3030

31-
parent_image_type=$(basename $file | sed 's|-requirements.in||g')
31+
parent_image_type=$(basename $file | sed 's|-requirements.txt||g')
3232
UPDATED_PARENT_TYPES+=($parent_image_type)
3333

3434
done <<< "$UPDATED_FILES"
35-
# TODO: UPDATED_PARENT_TYPES are not resolved correctly
3635
echo -e "::notice::Exporting matrix for parent image types: $UPDATED_PARENT_TYPES"
3736
elif [ -n "$PARENT_IMAGE_TYPE" ]; then
3837
echo "::notice::Exporting matrix for parent image type: $PARENT_IMAGE_TYPE"

0 commit comments

Comments
 (0)