From 232f28ee586940bd587e4b6f955ac70aedf870c1 Mon Sep 17 00:00:00 2001 From: Moshe Reubinoff Date: Thu, 20 Jul 2023 14:47:35 +0200 Subject: [PATCH] update version label --- action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.py b/action.py index 3c630eb..d8e5d87 100644 --- a/action.py +++ b/action.py @@ -50,8 +50,8 @@ def is_env_ready(env_status: EnvironmentStatus, app_version_label: str) -> bool: """ Check if environment is ready""" print(f"Checking if environment {env_status} is ready. Expected version: {app_version_label}") - version_is_ok = env_status.version_label == app_version_label and app_version_label is not None - if app_version_label is None: + version_is_ok = env_status.version_label == app_version_label and (app_version_label is not None or app_version_label != "") + if app_version_label is None or app_version_label == "": version_is_ok = True # no version check required print(f"Version is ok: {version_is_ok}") status_is_ok = env_status.status == READY_STATUS