desired version 이름 변경
This commit is contained in:
6
main.py
6
main.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user