From 84a4b97cfb28c319f8a1f74396fc75f58eae07ac Mon Sep 17 00:00:00 2001 From: Ivan Zorin Date: Thu, 3 Aug 2023 14:48:08 +0300 Subject: [PATCH] make_translation.py: fix condition --- Translations/make_translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translations/make_translation.py b/Translations/make_translation.py index 2f883acf2..0c53f8b8e 100755 --- a/Translations/make_translation.py +++ b/Translations/make_translation.py @@ -1266,7 +1266,7 @@ def get_translation_sanity_checks_text(defs: dict) -> str: def get_version_suffix(ver) -> str: # Check env var from push.yml first: # - if it's pull request then use vX.YY + C.ID for version line as in *C*I with proper tag instead of merge tag for detached tree - if os.environ.get("GITHUB_CI_PR_SHA", None) is not None: + if os.environ.get("GITHUB_CI_PR_SHA", "") != "": return "C" + "." + os.environ["GITHUB_CI_PR_SHA"][:8].upper() # - no github PR SHA ID, hence keep checking