File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5- PR_NUMBER=" "
5+ PR_NUMBER=" 40 "
66SOURCE_SCRIPT=" pi/constants.sh"
77PARENT_IMAGE_TYPE=" "
8- EDIT_DOCKERFILE=false
8+ EDIT_DOCKERFILE=true
99
1010while getopts t:p:s:d: flag
1111do
@@ -24,15 +24,14 @@ UPDATED_PARENT_TYPES=()
2424if [ -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 "
3736elif [ -n " $PARENT_IMAGE_TYPE " ]; then
3837 echo " ::notice::Exporting matrix for parent image type: $PARENT_IMAGE_TYPE "
You can’t perform that action at this time.
0 commit comments