desired version 이름 변경

This commit is contained in:
minchulahn
2023-05-23 11:36:41 +09:00
parent 4fe326656f
commit 760cb9cf3c
2 changed files with 30 additions and 30 deletions

View File

@@ -6,9 +6,9 @@ def get_service_index():
return index
exit(traceback.print_exc())
def set_desired_version():
def set_latest_version():
service_index = get_service_index()
json_data["service"][service_index]["desired_version"] = tagName
json_data["service"][service_index]["set_latest_version"] = tagName
if __name__ == '__main__':
@@ -22,7 +22,7 @@ if __name__ == '__main__':
with open(file_path, 'r') as json_file:
json_data = json.load(json_file)
set_desired_version()
set_latest_version()
with open(file_path, 'w') as file:
json.dump(json_data, file, indent=4)