We have a classic release pipeline that we'd like to be able to trigger from a YAML build pipeline under certain conditions, these conditions aren't always going to be ones we can define using the existing CI trigger that can be defined for a release pipelines. We'd also prefer not to use a multi-stage pipeline as the access controls for the release pipeline wouldn't be easy to replicate for YAML files.
With that in mind is there a task that can be used in a YAML build pipeline in order to "manually" trigger a classic release pipeline? This obviously could be achieved via the Azure DevOps API but it would be a lot easier if a task was available.