Skip to content

Commit

Permalink
make_translation.py: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ia committed Aug 3, 2023
1 parent d0d2861 commit 5037af8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Translations/make_translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,12 +1264,17 @@ def get_translation_sanity_checks_text(defs: dict) -> str:


def get_version_suffix(ver) -> str:
print("====>>>>", os.environ['GITHUB_CI_EVENT'])
print("====>>>>", os.environ['GITHUB_CI_SHA'])
print("====>>>>", os.environ["GITHUB_CI_EVENT"])
print("====>>>>", os.environ["GITHUB_CI_SHA"])
# Check env vars from push.yml first (sha id may be set but being empty)
if os.environ['GITHUB_CI_EVENT'] and os.environ['GITHUB_CI_EVENT'] == "pull_request" and os.environ['GITHUB_CI_SHA'] and os.environ['GITHUB_CI_SHA'] != "":
if (
os.environ["GITHUB_CI_EVENT"]
and os.environ["GITHUB_CI_EVENT"] == "pull_request"
and os.environ["GITHUB_CI_SHA"]
and os.environ["GITHUB_CI_SHA"] != ""
):
# 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'
return "C" + "." + os.environ['GITHUB_CI_SHA'][:8]
return "C" + "." + os.environ["GITHUB_CI_SHA"][:8]
suffix = str("")
try:
# Use commands _hoping_ they won't be too new for one environments nor deprecated for another ones:
Expand Down

0 comments on commit 5037af8

Please sign in to comment.