# 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
    - android_taskgraph.transforms.notify:transforms
    - taskgraph.transforms.notify:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - push-apk

task-defaults:
    name: notify-release-drivers-push
    description: Sends email to release-drivers telling release was pushed.
    shipping-phase: push
    worker-type: succeed
    worker:
        implementation: succeed
    notifications:
        subject: "Focus/Fenix {config[params][version]}-build{config[params][build_number]} has been pushed to the closed testing track on Google Play"
        message:
            by-level:
                '3':
                    Focus/Fenix {config[params][version]}-build{config[params][build_number]} has been pushed to the closed testing track on Google Play
                    and Android-Components {config[params][version]}-build{config[params][build_number]} have been pushed to https://maven.mozilla.org/
                default:
                    Focus/Fenix {config[params][version]}-build{config[params][build_number]} has not been pushed to the closed testing track on Google Play
                    and Android-Components {config[params][version]}-build{config[params][build_number]} have been pushed to https://maven-default.stage.mozaws.net/"
        emails:
            by-level:
                '3': ["release-signoff@mozilla.org"]
                default: ["{config[params][owner]}"]

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