From 0be7a22e727dd4905d7f360c43f89651a562eb75 Mon Sep 17 00:00:00 2001 From: strahi-linux Date: Tue, 3 Sep 2024 12:34:30 +0200 Subject: [PATCH] Added check for latest release --- scripts/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/index.py b/scripts/index.py index ebf3ec0b6..98ef25fa2 100644 --- a/scripts/index.py +++ b/scripts/index.py @@ -234,7 +234,10 @@ def is_release_latest(repo, token, release_version): response = requests.get(url, headers=api_headers) response.raise_for_status() # Raise an exception for HTTP errors latest_release = support.get_latest_release(response.json()) - return response.json(), release_version == latest_release['tag_name'] + if 'latest' == release_version: + return None, True + else: + return response.json(), release_version == latest_release['tag_name'] def promote_to_latest(releases, repo, token, release_version): # Headers for authentication