You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,13 +89,13 @@ for service_path in ${work_dir}/sdk_to_push/services/*; do
89
89
fi
90
90
91
91
git add services/${service}/
92
-
if [ "${LANGUAGE}"=="go" ] && [ !-d"${work_dir}/sdk_backup/services/${service}/" ];then# Check if it is a newly added SDK module
93
-
# go work use -r adds a use directive to the go.work file for dir, if it exists, and removes the use directory if the argument directory doesn’t exist
94
-
# the -r flag examines subdirectories of dir recursively
95
-
# this prevents errors if there is more than one new module in the SDK generation
96
-
go work use -r .
97
-
git add go.work
98
-
fi
92
+
#if [ "${LANGUAGE}" == "go" ] && [ ! -d "${work_dir}/sdk_backup/services/${service}/" ]; then # Check if it is a newly added SDK module
93
+
# # go work use -r adds a use directive to the go.work file for dir, if it exists, and removes the use directory if the argument directory doesn’t exist
94
+
# # the -r flag examines subdirectories of dir recursively
95
+
# # this prevents errors if there is more than one new module in the SDK generation
96
+
go work use -r services
97
+
git add go.work
98
+
#fi
99
99
100
100
if [[ "$branch"!="main" ]];then
101
101
echo">> Creating PR for $service"
@@ -108,16 +108,17 @@ for service_path in ${work_dir}/sdk_to_push/services/*; do
108
108
109
109
# If lint or test fails for a service, we skip it and continue to the next one
110
110
make lint skip-non-generated-files=true service=$service|| {
111
-
echo"! Linting failed for $service"
111
+
echo"! Linting failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
112
112
continue
113
113
}
114
114
make test skip-non-generated-files=true service=$service|| {
115
-
echo"! Testing failed for $service"
115
+
echo"! Testing failed for $service. THE UPDATE OF THIS SERVICE WILL BE SKIPPED."
116
116
continue
117
117
}
118
118
119
-
git commit -m "Generate $service: $COMMIT_INFO"
120
-
git push origin "$branch"
119
+
echo">> Actually pushing changes to main for $service service..."
0 commit comments