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 65ffe91 commit d0bcebd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build/sync_version_to_contentful.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ def update_contentful(product_name, editions, requirements):
entry.fields('en-US')['storage'] = requirements['disk']

# 保存和发布更新
try:
entry.save()
entry.publish()
print(f"Entry '{product_name}' updated and published.")
except Exception as e:
print(f"Failed to update and publish entry: {e}")
entry.save()
entry.publish()

# 遍历 apps 文件夹中的 variables.json 文件
# apps_path = Path('apps')
Expand Down

0 comments on commit d0bcebd

Please sign in to comment.