Files
dsk-version-management/update_dsk_version.py
2023-06-22 15:49:48 +09:00

16 lines
307 B
Python

import json, sys, traceback
if len(sys.argv) != 2:
exit(traceback.print_exc())
releaseTag = sys.argv[1]
file_path = "./version.json"
with open(file_path, 'r') as file:
data = json.load(file)
data["datasaker"] = releaseTag
with open(file_path, 'w') as file:
json.dump(data, file, indent=4)