Skip to content

Commit

Permalink
Added check for latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Sep 3, 2024
1 parent d5bddc7 commit 0be7a22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0be7a22

Please sign in to comment.