title: Multi-stage YAML Azure Pipeline conditional stage visibility
body: <p>We're starting down the path to move our Azure Pipelines from Classic to YAML. Is it possible with multi-stage pipelines to have stages not show up in the stages list, based on conditional logic?</p>
  <p>For example, we have multi-stage pipelines that build and then are deployed to one or more environments via pipeline stages. When the build occurs, say, on non-trunk branches, we don't want certain environments to be available at all for deployment. We have that logic working, but the excluded environment stages still show up, for example, in the pipeline run history.</p>
  <p>Can we make these stages not show up at all based on conditional logic?</p>