Cherry Picking 13124 (#13132)

### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Co-authored-by: Baiju Meswani <bmeswani@microsoft.com>
This commit is contained in:
Jian Chen 2022-09-28 12:36:25 -04:00 committed by GitHub
parent 43766ee36d
commit c0bb9d5e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ stages:
variables:
- name: isMain
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
value: ${{ or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/rel-')) }}
- name: finalStorage
${{ if eq(variables['isMain'], 'true') }}:
value: '--final_storage'