diff options
Diffstat (limited to 'scripts/cirrus/build.py')
-rw-r--r-- | scripts/cirrus/build.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/cirrus/build.py b/scripts/cirrus/build.py index 15c047e9..0499d91a 100644 --- a/scripts/cirrus/build.py +++ b/scripts/cirrus/build.py @@ -107,10 +107,16 @@ def main(): key = env["CIRRUS_KEY"] branch = args[1] - dl_path = args[2] if len(args) >= 3 else "" + branch_type = args[2] + + # TODO: This is a bit of a hack, sorry. You want to properly handle this I suppose with the endpoint you hit. + if branch_type == "tag": + branch = "master" + + dl_path = args[3] if len(args) >= 4 else "" dl_path = Path(dl_path) - build_type = args[3] if len(args) >= 4 else "build" - build_id = args[4] if len(args) >= 5 else None + build_type = args[4] if len(args) >= 5 else "build" + build_id = args[5] if len(args) >= 6 else None # Check if this build has already been completed before. if build_id is not None: |