ci: treat .markdown like .md in push builds

From the local CodeRabbit review: a Markdown-only push using the .markdown
extension still rebuilt Quest. Exclude both extensions in the push planner
and in the documented job path filter.
This commit is contained in:
Alexa
2026-10-25 13:51:26 +02:00
parent e29707deeb
commit 503d838fd1
2 changed files with 4 additions and 4 deletions
Vendored
+2 -2
View File
@@ -78,11 +78,11 @@ pipeline {
for (entry in cs.items) changed.addAll(entry.affectedPaths)
}
// Only client-facing changes rebuild (and so republish) a
// platform; Markdown doesn't count. The job's Git path filter
// platform; Markdown (.md, .markdown) doesn't count. The job's Git path filter
// uses the same paths, so other pushes don't start a run at all.
// A CI-only change (Jenkinsfile, ci/) takes a manual run.
def touches = { prefixes ->
changed.any { p -> !p.toLowerCase().endsWith('.md') && prefixes.any { p.startsWith(it) } }
changed.any { p -> !(p.toLowerCase() ==~ /.*\.(md|markdown)/) && prefixes.any { p.startsWith(it) } }
}
buildPc = touches(['DorkNet.ClientMod/', 'tools/build_pc.py'])
buildQuest = touches(['DorkNet.Quest/'])