Skip to content

Commit

Permalink
generate item.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Jun 25, 2024
1 parent 49cfd5c commit dfd0bbc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/scripts/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,27 @@ def copy_macros():
sys.exit(1)


def generate_item_file():
with open(f"ix-dev/{args['train']}/{args['app']}/app.yaml", "r") as f:
app_yaml = yaml.safe_load(f)

item_file = f"ix-dev/{args['train']}/{args['app']}/item.yaml"
item_data = {
"icon_url": app_yaml.get("icon", ""),
"categories": app_yaml.get("categories", []),
"screenshots": app_yaml.get("screenshots", []),
"tags": app_yaml.get("keywords", []),
}
with open(item_file, "w") as f:
yaml.dump(item_data, f)


def main():
print_info()
check_app_dir_exists()
copy_lib()
copy_macros()
generate_item_file()
check_required_commands()
pull_app_catalog_container()
render_compose()
Expand Down

0 comments on commit dfd0bbc

Please sign in to comment.