Unverified Commit b5a6ace9 authored by Johan Lorenzo's avatar Johan Lorenzo Committed by GitHub
Browse files

Bug 1635488 - part 2: Add missing branch in version bump payload (#16651)

* Bug 1635488 - part 2: Add missing branch in version bump payload

* Bump version.txt to 84.0.0-beta.2
parent 3350114d
...@@ -34,7 +34,9 @@ def resolve_keys(config, tasks): ...@@ -34,7 +34,9 @@ def resolve_keys(config, tasks):
@transforms.add @transforms.add
def build_worker_definition(config, tasks): def build_worker_definition(config, tasks):
for task in tasks: for task in tasks:
worker_definition = {} worker_definition = {
"branch": config.params["head_ref"].decode("utf-8"),
}
task["worker"].update(worker_definition) task["worker"].update(worker_definition)
yield task yield task
...@@ -172,6 +172,7 @@ def build_github_release_payload(config, task, task_def): ...@@ -172,6 +172,7 @@ def build_github_release_payload(config, task, task_def):
Required("bump"): bool, Required("bump"): bool,
Optional("bump-files"): [text_type], Optional("bump-files"): [text_type],
Optional("push"): bool, Optional("push"): bool,
Optional("branch"): text_type,
}, },
) )
def build_version_bump_payload(config, task, task_def): def build_version_bump_payload(config, task, task_def):
...@@ -196,3 +197,6 @@ def build_version_bump_payload(config, task, task_def): ...@@ -196,3 +197,6 @@ def build_version_bump_payload(config, task, task_def):
if worker.get('force-dry-run'): if worker.get('force-dry-run'):
task_def['payload']['dry_run'] = True task_def['payload']['dry_run'] = True
if worker.get("branch"):
task_def["payload"]["branch"] = worker["branch"]
84.0.0-beta.1 84.0.0-beta.2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment