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'