aboutsummaryrefslogtreecommitdiffhomepage
path: root/Translations/make_translation.py
diff options
context:
space:
mode:
Diffstat (limited to 'Translations/make_translation.py')
-rwxr-xr-xTranslations/make_translation.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Translations/make_translation.py b/Translations/make_translation.py
index 505e42f5..0c53f8b8 100755
--- a/Translations/make_translation.py
+++ b/Translations/make_translation.py
@@ -1264,7 +1264,14 @@ 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", "") != "":
+ return "C" + "." + os.environ["GITHUB_CI_PR_SHA"][:8].upper()
+ # - no github PR SHA ID, hence keep checking
+
suffix = str("")
+
try:
# Use commands _hoping_ they won't be too new for one environments nor deprecated for another ones:
## - get commit id; --short=8 - the shorted hash with 8 digits (increase/decrease if needed!)
@@ -1299,9 +1306,11 @@ def get_version_suffix(ver) -> str:
except OSError:
# Something _special_?
suffix = "S"
+
if "" == suffix:
# Something _very_ special!
suffix = "V"
+
return suffix