Skip to content

Commit

Permalink
Autobuild: Avoid log output in build-vars helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffie committed Jun 18, 2022
1 parent a9ce4a9 commit 1d10c31
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/autobuild/get_build_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ def get_git_hash():
def get_build_version(jamulus_pro_version):
if "dev" in jamulus_pro_version:
version = "{}-{}".format(jamulus_pro_version, get_git_hash())
print(f"building an intermediate version: {version}")
return version
return 'intermediate', version

version = jamulus_pro_version
print(f"building a release version: {version}")
return version
return 'release', version


def set_github_variable(varname, varval):
Expand All @@ -50,7 +48,8 @@ def set_github_variable(varname, varval):

jamulus_pro_version = get_version_from_jamulus_pro()
set_github_variable("JAMULUS_PRO_VERSION", jamulus_pro_version)
build_version = get_build_version(jamulus_pro_version)
build_type, build_version = get_build_version(jamulus_pro_version)
print(f'building a version of type "{build_type}": {build_version}')

fullref = os.environ['GITHUB_REF']
publish_to_release = bool(re.match(r'^refs/tags/r\d+_\d+_\d+\S*$', fullref))
Expand Down

0 comments on commit 1d10c31

Please sign in to comment.