# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: android_taskgraph.loader.all_dep:loader

transforms:
    - android_taskgraph.transforms.treeherder:transforms
    - android_taskgraph.transforms.all_dep:transforms
    - android_taskgraph.transforms.version_bump:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - post-beetmover
    # TODO: Make it depend on push-apk too. At the moment, it's okay to wait solely
    # on post-beetmover because they're part of the ship graph while push-apk is in the
    # promote one

group-by: build-type

only-for-build-types:
    - beta
    - release

task-template:
    description: Firefox-android version bump
    shipping-phase: ship
    worker-type: tree
    worker:
        bump: true
        bump-files: ["version.txt"]
        push:
            by-level:
                "3": true
                # If you set the following line to true, you need to grant write access
                # to https://github.com/moz-releng-automation-stage on your fork.
                default: false

    treeherder:
        job-symbol:
            by-build-type:
                release: vb
                beta: vbB
        kind: build
