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 2
2
3
3
set -e
4
4
5
- PR_NUMBER=" "
5
+ PR_NUMBER=" 40 "
6
6
SOURCE_SCRIPT=" pi/constants.sh"
7
7
PARENT_IMAGE_TYPE=" "
8
- EDIT_DOCKERFILE=false
8
+ EDIT_DOCKERFILE=true
9
9
10
10
while getopts t:p:s:d: flag
11
11
do
@@ -24,15 +24,14 @@ UPDATED_PARENT_TYPES=()
24
24
if [ -n " $PR_NUMBER " ] && [ -z " $PARENT_IMAGE_TYPE " ]; then
25
25
UPDATED_FILES=$( gh pr diff $PR_NUMBER --name-only --repo code-kern-ai/refinery-submodule-parent-images)
26
26
while IFS= read -r file; do
27
- if [[ $file != requirements/* ]] || [[ $file != * .in ]]; then
27
+ if [[ $file != requirements/* ]] || [[ $file != * requirements.txt ]]; then
28
28
continue
29
29
fi
30
30
31
- parent_image_type=$( basename $file | sed ' s|-requirements.in ||g' )
31
+ parent_image_type=$( basename $file | sed ' s|-requirements.txt ||g' )
32
32
UPDATED_PARENT_TYPES+=($parent_image_type )
33
33
34
34
done <<< " $UPDATED_FILES"
35
- # TODO: UPDATED_PARENT_TYPES are not resolved correctly
36
35
echo -e " ::notice::Exporting matrix for parent image types: $UPDATED_PARENT_TYPES "
37
36
elif [ -n " $PARENT_IMAGE_TYPE " ]; then
38
37
echo " ::notice::Exporting matrix for parent image type: $PARENT_IMAGE_TYPE "
You can’t perform that action at this time.
0 commit comments