def METHOD_NAME(config, tasks):
    for task in tasks:
        if task["worker"].get("action") == "push-to-maven":
            task["worker"]["artifact-map"] = _build_maven_artifact_map(config, task)
        else:
            task["worker"]["artifact-map"] = _build_artifact_map(config, task)
        yield task