Skip to content

Commit

Permalink
Merge pull request #1419 from unoplatform/dev/agzi/AdjustDetermineCha…
Browse files Browse the repository at this point in the history
…nges

ci: Include .markdownlint.json and cspell.json as part of the documentation
  • Loading branch information
agneszitte authored Jun 4, 2024
2 parents 0835a3f + a5c0036 commit 8929074
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/stage-determine-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
}
foreach ($file in $changedFiles -split "`n") {
# Identifying changes as documentation if they occur:
# Within the doc folder, or
# Are Markdown files at the root level (with no subdirectories involved), or
# Are Markdown files within the .github folder (including its subdirectories)
$isDoc = $file.StartsWith("doc/") -or ($file -match "^[^/]+\.md$") -or ($file -match "^\.github/.*\.md$")
# Identifying changes as documentation:
$isDoc = $file.StartsWith("doc/") -or # Files in the 'doc/' directory
($file -match "^[^/]+\.md$") -or # Markdown files at the root level (with no subdirectories involved)
($file -match "^\.github/.*\.md$") -or # Markdown files within the .github folder (including its subdirectories)
($file -match "^\.(markdownlint|cspell)\.json$") # Specific JSON files: .markdownlint.json and cspell.json
if ($isDoc) {
$docFiles++
Expand Down

0 comments on commit 8929074

Please sign in to comment.