From c0bb9d5e264bbe216e772c9ccd5e8c79a9441604 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Wed, 28 Sep 2022 12:36:25 -0400 Subject: [PATCH] Cherry Picking 13124 (#13132) ### Description ### Motivation and Context Co-authored-by: Baiju Meswani --- .../templates/py-packaging-training-cuda-stage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/py-packaging-training-cuda-stage.yml b/tools/ci_build/github/azure-pipelines/templates/py-packaging-training-cuda-stage.yml index bc740eb18e..c54d6925eb 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-packaging-training-cuda-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-packaging-training-cuda-stage.yml @@ -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'