Skip to content

Commit

Permalink
Update sync_version_to_contentful.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojing1987 authored Dec 4, 2023
1 parent b184a96 commit fb4cc36
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions build/sync_version_to_contentful.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}])

0 comments on commit fb4cc36

Please sign in to comment.