Skip to content

Commit 0cb6ec1

Browse files
authored
Fix the issue when checking help examples in CI pipeline (#21620)
* update * update
1 parent a745e49 commit 0cb6ec1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ci-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"phases": [
9090
"build:module",
9191
"help:module",
92-
"example:module"
92+
"help-example:module"
9393
]
9494
},
9595
{

tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ if ($PSCmdlet.ParameterSetName -eq "Markdown") {
7272
}
7373
foreach ($_ in Get-ChildItem $MarkdownPath -Recurse:$Recurse) {
7474
# Filter the .md of overview in "\help\"
75-
if ((Get-Item -Path $_.FullName).Directory.Name -eq "help" -and $_.FullName -cmatch ".*\.md" -and $_.BaseName -cmatch "^[A-Z][a-z]+-([A-Z][a-z0-9]*)+$") {
75+
if (((Get-Item -Path $_.FullName).Directory.Name -eq "help" -or (Get-Item -Path $_.FullName).Directory.Name -eq "docs") -and $_.FullName -cmatch ".*\.md" -and $_.BaseName -cmatch "^[A-Z][a-z]+-([A-Z][a-z0-9]*)+$") {
7676
if ((Get-Item -Path $_.FullName).Directory.Parent.Name -eq "netcoreapp3.1") {
7777
continue
7878
}

0 commit comments

Comments
 (0)