From 1d10c31296127518fa9ce401a13006e92982c03d Mon Sep 17 00:00:00 2001 From: Christian Hoffmann Date: Sat, 18 Jun 2022 18:15:27 +0200 Subject: [PATCH] Autobuild: Avoid log output in build-vars helper function Related: https://github.com/jamulussoftware/jamulus/pull/2656/files/42e085c2254984162ebf964154ca8aa4041a9046#r900988442 --- .github/autobuild/get_build_vars.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/autobuild/get_build_vars.py b/.github/autobuild/get_build_vars.py index 81470652ce..f6a5ca55e0 100755 --- a/.github/autobuild/get_build_vars.py +++ b/.github/autobuild/get_build_vars.py @@ -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): @@ -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))