Skip to content

Commit

Permalink
rename data ci if necessary (#18531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenTanyi authored Jan 11, 2021
1 parent b3a65a8 commit 79d3492
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/mgmt/automation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ def update_service_ci_and_pom(sdk_root: str, service: str):
if os.path.exists(ci_yml_file):
with open(ci_yml_file, 'r') as fin:
ci_yml = yaml.safe_load(fin)
sdk_type: str = ci_yml.get('extends', dict()).get('parameters', dict()).get('SDKType', '')
if type(sdk_type) == str and sdk_type.lower() == 'data':
os.rename(ci_yml_file, os.path.join(os.path.dirname(ci_yml_file), 'ci.data.yml'))
ci_yml = yaml.safe_load(CI_FORMAT.format(service, module))
else:
ci_yml = yaml.safe_load(CI_FORMAT.format(service, module))

Expand Down

0 comments on commit 79d3492

Please sign in to comment.