diff --git a/tools/devops/automation/templates/build/configure.yml b/tools/devops/automation/templates/build/configure.yml index cf1a223189d5..436a9d538c53 100644 --- a/tools/devops/automation/templates/build/configure.yml +++ b/tools/devops/automation/templates/build/configure.yml @@ -127,21 +127,22 @@ steps: continueOnError: true workingDirectory: $(Build.SourcesDirectory)\tools\devops -- task: OneLocBuild@2 - condition: and(succeeded(), eq(variables.isMain, 'True')) - continueOnError: true - env: - SYSTEM_ACCESSTOKEN: $(System.AccessToken) - inputs: - locProj: '$(Build.SourcesDirectory)\Localize\LocProject.json' - outDir: '$(Build.ArtifactStagingDirectory)' - isCreatePrSelected: false - isAutoCompletePrSelected: false - prSourceBranchPrefix: 'locfiles' - repoType: gitHub - gitHubPatVariable: '$(GitHub.Token)' - packageSourceAuth: patAuth - patVariable: '$(OneLocBuild--PAT)' +- ${{ if eq(variables['Build.Reason'], 'Schedule') }}: + - task: OneLocBuild@2 + condition: and(succeeded(), eq(variables.isMain, 'True')) + continueOnError: true + env: + SYSTEM_ACCESSTOKEN: $(System.AccessToken) + inputs: + locProj: '$(Build.SourcesDirectory)\Localize\LocProject.json' + outDir: '$(Build.ArtifactStagingDirectory)' + isCreatePrSelected: true + isAutoCompletePrSelected: false + prSourceBranchPrefix: 'locfiles' + repoType: gitHub + gitHubPatVariable: '$(GitHub.Token)' + packageSourceAuth: patAuth + patVariable: '$(OneLocBuild--PAT)' - task: PublishBuildArtifacts@1 condition: and(succeeded(), eq(variables.isMain, 'True'))