Add condition check on main branch updates (#23855)

This commit is contained in:
Sima Zhu 2022-11-15 16:13:33 -08:00 коммит произвёл GitHub
Родитель 312a78f7f5
Коммит c27b5a9a39
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -39,7 +39,7 @@ jobs:
pwsh: true
filePath: eng/common/scripts/Update-DocsMsPackages.ps1
arguments: -DocRepoLocation $(DocRepoLocation) -ImageId '$(DocValidationImageId)'
displayName: Update Docs Onboarding
displayName: Update Docs Onboarding for main branch
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true')))
- task: Powershell@2
@ -51,8 +51,8 @@ jobs:
-TenantId '$(opensource-aad-tenant-id)'
-ClientId '$(opensource-aad-app-id)'
-ClientSecret '$(opensource-aad-secret)'
displayName: Generate Service Level Readme
displayName: Generate Service Level Readme for main branch
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true')))
- task: Powershell@2
inputs:
@ -61,7 +61,7 @@ jobs:
arguments: >-
-DocRepoLocation $(DocRepoLocation)
-OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml
displayName: Generate ToC
displayName: Generate ToC for main branch
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true')))
# Push changes to docs repo
@ -94,7 +94,7 @@ jobs:
pwsh: true
filePath: eng/common/scripts/Update-DocsMsPackages.ps1
arguments: -DocRepoLocation $(DocRepoLocation)
displayName: Update Docs Onboarding for Daily branch
displayName: Update Docs Onboarding for Daily docs
- task: Powershell@2
inputs:
@ -105,7 +105,7 @@ jobs:
-TenantId '$(opensource-aad-tenant-id)'
-ClientId '$(opensource-aad-app-id)'
-ClientSecret '$(opensource-aad-secret)'
displayName: Generate Service Level Readme
displayName: Generate Service Level Readme for Daily docs
- task: Powershell@2
inputs:
@ -114,7 +114,7 @@ jobs:
arguments: >-
-DocRepoLocation $(DocRepoLocation)
-OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml
displayName: Generate ToC for Daily branch
displayName: Generate ToC for Daily docs
- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
parameters:
@ -125,6 +125,7 @@ jobs:
TargetRepoOwner: $(DocRepoOwner)
WorkingDirectory: $(DocRepoLocation)
ScriptDirectory: $(Build.SourcesDirectory)/eng/common/scripts
PushArgs: -f
- task: PowerShell@2
displayName: Queue Docs CI build