mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 15:08:47 -07:00
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:
Vendored
+2
-2
@@ -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/'])
|
||||
|
||||
Reference in New Issue
Block a user