Add task to verify json files contain required members after ToC generation (#25685)
Add a call after ToC generation to verify that the json files contain the required members which cannot be null or empty.
This commit is contained in:
Родитель
74ff4f639d
Коммит
77b891d29e
|
@ -64,6 +64,14 @@ jobs:
|
|||
displayName: Generate ToC for main branch
|
||||
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq(variables['Force.MainUpdate'], 'true')))
|
||||
|
||||
- task: Powershell@2
|
||||
inputs:
|
||||
pwsh: true
|
||||
filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1
|
||||
arguments: >-
|
||||
-DocRepoLocation $(DocRepoLocation)
|
||||
displayName: Verify Required Docs Json Members
|
||||
|
||||
# Push changes to docs repo
|
||||
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
|
||||
parameters:
|
||||
|
@ -116,6 +124,14 @@ jobs:
|
|||
-OutputLocation $(DocRepoLocation)/docs-ref-mapping/reference-unified.yml
|
||||
displayName: Generate ToC for Daily docs
|
||||
|
||||
- task: Powershell@2
|
||||
inputs:
|
||||
pwsh: true
|
||||
filePath: eng/common/scripts/Verify-RequiredDocsJsonMembers.ps1
|
||||
arguments: >-
|
||||
-DocRepoLocation $(DocRepoLocation)
|
||||
displayName: Verify Required Docs Json Members
|
||||
|
||||
- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
|
||||
parameters:
|
||||
BaseRepoBranch: $(DailyDocsBranchName)
|
||||
|
|
Загрузка…
Ссылка в новой задаче