Skip to content

Commit

Permalink
ci: Adjust the regex patterns to identify changes for documentation i…
Browse files Browse the repository at this point in the history
…f they occur within the doc folder, are Markdown files at the root level (with no subdirectories involved), or are Markdown files within the .github folder (including its subdirectories)
  • Loading branch information
agneszitte committed Apr 3, 2024
1 parent d73c83d commit 33a1302
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- legacy/*
- feature/*

pr:
pr:
branches:
include:
- master
Expand Down
2 changes: 1 addition & 1 deletion build/stage-determine-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
}
foreach ($file in $changedFiles -split "`n") {
$isDoc = $file.StartsWith("doc/") -or $file -match "^.*/?[^/]*\.md$" -or $file.StartsWith(".github/")
$isDoc = $file.StartsWith("doc/") -or ($file -match "^[^/]+\.md$") -or ($file -match "^\.github/.*\.md$")
if ($isDoc) {
$docFiles++
Expand Down

0 comments on commit 33a1302

Please sign in to comment.