# 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: taskgraph.loader.transform:loader

transforms:
    - android_taskgraph.transforms.release_deps:transforms
    - taskgraph.transforms.notify:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - push-apk
    - post-beetmover
    - github-release-components
    - github-release-apks
    - version-bump
    - mark-as-shipped

task-defaults:
    name: notify-release-drivers-ship
    description: Sends email to release-drivers telling release was shipped.
    shipping-phase: ship
    worker-type: succeed
    worker:
        implementation: succeed
    notifications:
        subject: "{config[params][project]} {config[params][version]} build{config[params][build_number]} has been tagged in GitHub"
        emails:
            by-level:
                '3': ["release-signoff@mozilla.org"]
                default: ["{config[params][owner]}"]

tasks:
    beta:
        attributes:
            release-type: beta
    release:
        attributes:
            release-type: release
