Skip to content

Commit 79d3492

Browse files
authored
rename data ci if necessary (#18531)
1 parent b3a65a8 commit 79d3492

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

eng/mgmt/automation/generate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ def update_service_ci_and_pom(sdk_root: str, service: str):
168168
if os.path.exists(ci_yml_file):
169169
with open(ci_yml_file, 'r') as fin:
170170
ci_yml = yaml.safe_load(fin)
171+
sdk_type: str = ci_yml.get('extends', dict()).get('parameters', dict()).get('SDKType', '')
172+
if type(sdk_type) == str and sdk_type.lower() == 'data':
173+
os.rename(ci_yml_file, os.path.join(os.path.dirname(ci_yml_file), 'ci.data.yml'))
174+
ci_yml = yaml.safe_load(CI_FORMAT.format(service, module))
171175
else:
172176
ci_yml = yaml.safe_load(CI_FORMAT.format(service, module))
173177

0 commit comments

Comments
 (0)