jetbrains.gateway: Always use build number as version

JetBrains is being inconsistent here, might need to revert if
versioning is fixed upstream.
This commit is contained in:
Steven Kou 2022-12-07 17:17:32 +08:00
parent 52ac262ebd
commit 2f17f70a9a
No known key found for this signature in database
GPG key ID: D0D4BCFA8DB68E35

View file

@ -64,7 +64,7 @@ def update_product(name, product):
build = latest_build(channel)
new_version = build["@version"]
new_build_number = build["@fullNumber"]
if "EAP" not in channel["@name"]:
if all(x not in channel["@name"] for x in ["EAP", "Gateway"]):
version_or_build_number = new_version
else:
version_or_build_number = new_build_number