From fb4cc360f9ac23399ccd8d7d3cc8bfb60a9931ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E7=92=9F?= Date: Mon, 4 Dec 2023 08:57:56 +0800 Subject: [PATCH] Update sync_version_to_contentful.py --- build/sync_version_to_contentful.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/build/sync_version_to_contentful.py b/build/sync_version_to_contentful.py index 3d859df92..aed5cb4d2 100644 --- a/build/sync_version_to_contentful.py +++ b/build/sync_version_to_contentful.py @@ -69,10 +69,12 @@ def update_contentful(product_name, editions): return # 遍历 apps 文件夹中的 variables.json 文件 -apps_path = Path('apps') -for variables_file in apps_path.rglob('variables.json'): - with open(variables_file) as file: - data = json.load(file) - product_name = data['name'] - editions = data['edition'] - update_contentful(product_name, editions) +# apps_path = Path('apps') +# for variables_file in apps_path.rglob('variables.json'): +# with open(variables_file) as file: +# data = json.load(file) +# product_name = data['name'] +# editions = data['edition'] +# update_contentful(product_name, editions) + +update_contentful("wordpress", [{"dist": "wordpress", "version": "5.7.2"}])