Skip to content

Commit 992f30f

Browse files
authored
Update submodule-codebuild-ci.yml to support PR checks for V3 launch (#1851)
1 parent 337e40b commit 992f30f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/submodule-codebuild-ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,21 @@ jobs:
7777
7878
SUBMODULES=[]
7979
80-
if echo "$CHANGES" | grep -q "^sagemaker_train/"; then
81-
SUBMODULES='["sagemaker_train"]'
80+
if echo "$CHANGES" | grep -q "^sagemaker-train/"; then
81+
SUBMODULES='["sagemaker-train"]'
8282
fi
83-
if echo "$CHANGES" | grep -q "^sagemaker_utils/"; then
83+
if echo "$CHANGES" | grep -q "^sagemaker-serve/"; then
8484
if [ "$SUBMODULES" = '[]' ]; then
85-
SUBMODULES='["sagemaker_utils"]'
85+
SUBMODULES='["sagemaker-serve"]'
8686
else
87-
SUBMODULES='["sagemaker_train","sagemaker_utils"]'
87+
SUBMODULES=$(echo $SUBMODULES | sed 's/\]$/,"sagemaker-serve"\]/')
88+
fi
89+
fi
90+
if echo "$CHANGES" | grep -q "^sagemaker-mlops/"; then
91+
if [ "$SUBMODULES" = '[]' ]; then
92+
SUBMODULES='["sagemaker-mlops"]'
93+
else
94+
SUBMODULES=$(echo $SUBMODULES | sed 's/\]$/,"sagemaker-mlops"\]/')
8895
fi
8996
fi
9097
echo "Final SUBMODULES: $SUBMODULES"

0 commit comments

Comments
 (0)