From 3f89406ee1b4195f7d9b7ed562d71b4b06a86781 Mon Sep 17 00:00:00 2001 From: minchulahn Date: Thu, 25 May 2023 17:34:34 +0900 Subject: [PATCH] =?UTF-8?q?candidate=20json=20=ED=8C=8C=EC=9D=BC=EB=AA=85?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc-version.json => candidate-version.json | 1 + main.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) rename rc-version.json => candidate-version.json (99%) diff --git a/rc-version.json b/candidate-version.json similarity index 99% rename from rc-version.json rename to candidate-version.json index c3ed3bd..1dbfda7 100644 --- a/rc-version.json +++ b/candidate-version.json @@ -1,4 +1,5 @@ { + "datasaker": "dsk-YY.quarter.increase", "service": [ { "type": "front", diff --git a/main.py b/main.py index 8ee2356..fea2cf8 100644 --- a/main.py +++ b/main.py @@ -8,16 +8,16 @@ def get_service_index(): def set_latest_version(): service_index = get_service_index() - json_data["service"][service_index]["set_latest_version"] = tagName + json_data["service"][service_index]["latest_version"] = tagName if __name__ == '__main__': - if len(sys.argv) != 3 or 'rc' not in sys.argv[1]: + if len(sys.argv) != 3: exit(traceback.print_exc()) tagName = sys.argv[1] service_name = sys.argv[2] - file_path = "./rc-version.json" + file_path = "./candidate-version.json" with open(file_path, 'r') as json_file: json_data = json.load(json_file)