From 33a1302cbe35a8c02557293575a3147f840c0802 Mon Sep 17 00:00:00 2001 From: agneszitte Date: Wed, 3 Apr 2024 15:59:29 -0400 Subject: [PATCH] ci: Adjust the regex patterns to identify changes for documentation if 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) --- azure-pipelines.yml | 2 +- build/stage-determine-changes.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d360e4358..551883c0b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ - legacy/* - feature/* -pr: +pr: branches: include: - master diff --git a/build/stage-determine-changes.yml b/build/stage-determine-changes.yml index 83e82523b..6f1394fd2 100644 --- a/build/stage-determine-changes.yml +++ b/build/stage-determine-changes.yml @@ -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++