Skip to content

Commit

Permalink
Merge pull request #385 from Healthlane-Technologies/hotfix/latest_re…
Browse files Browse the repository at this point in the history
…lease_exist

Hotfix - Handled latest release condition
  • Loading branch information
shahharsh176 authored Sep 18, 2024
2 parents 89b78f8 + fed1270 commit 9def04d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/zango/cli/update_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ def create_release(tenant_name, app_settings, app_directory, git_mode):
latest_commit_hash = repo.head.commit.hexsha

last_release = get_last_release()
if not last_release or is_version_greater(
current_version, last_release.version
if not last_release or (
last_release
and is_version_greater(current_version, last_release.version)
):
release_notes = extract_release_notes(
os.path.join(app_directory, "CHANGELOG.md"), current_version
Expand Down

0 comments on commit 9def04d

Please sign in to comment.