bunndles/sshmon: fix update checks
This commit is contained in:
parent
da7928d0e6
commit
3bcf7ad714
2 changed files with 4 additions and 4 deletions
|
@ -38,10 +38,10 @@ try:
|
|||
|
||||
for i in releases:
|
||||
if i["tag_name"].startswith(tag_prefix):
|
||||
if (
|
||||
if not (i["prerelease"] or i["draft"]) and (
|
||||
newest_release is None
|
||||
or parse(i["tag_name"]) > parse(newest_release["tag_name"])
|
||||
) and not (i["prerelease"] or i["draft"]):
|
||||
):
|
||||
newest_release = i
|
||||
|
||||
assert newest_release is not None, "Could not determine latest release"
|
||||
|
|
|
@ -37,10 +37,10 @@ try:
|
|||
|
||||
for i in releases:
|
||||
if i["tag_name"].startswith(tag_prefix):
|
||||
if (
|
||||
if not (i["prerelease"] or i["draft"]) and (
|
||||
newest_release is None
|
||||
or parse(i["tag_name"]) > parse(newest_release["tag_name"])
|
||||
) and not (i["prerelease"] or i["draft"]):
|
||||
):
|
||||
newest_release = i
|
||||
|
||||
assert newest_release is not None, "Could not determine latest release"
|
||||
|
|
Loading…
Add table
Reference in a new issue