Skip to content

Commit

Permalink
Merge pull request #26 from truenas/NAS-129729
Browse files Browse the repository at this point in the history
NAS-129729 / 24.10 / Properly check if version has been bumped for an app
  • Loading branch information
Qubad786 authored Jul 1, 2024
2 parents 734c1e0 + 899f160 commit 34a3ee3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps_ci/scripts/catalog_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_apps_to_publish(catalog_path: str) -> dict:
continue

app_current_version = get_app_version(app_path)
if version_has_been_bumped(os.path.join(catalog_path, train_name, app_name), app_current_version):
if version_has_been_bumped(os.path.join(catalog_path, 'trains', train_name, app_name), app_current_version):
to_publish_apps[train_name].append({'name': app_name, 'version': app_current_version})

return to_publish_apps
Expand All @@ -103,8 +103,6 @@ def publish_updated_apps(catalog_path: str) -> None:

dev_item_yaml_path = os.path.join(dev_app_path, 'item.yaml')
publish_item_yaml_path = os.path.join(publish_app_path, 'item.yaml')
if os.path.exists(publish_app_version_path):
continue

shutil.copy(dev_item_yaml_path, publish_item_yaml_path)
shutil.copytree(dev_app_path, publish_app_version_path)
Expand Down

0 comments on commit 34a3ee3

Please sign in to comment.