Skip to content

Commit 45a1a1b

Browse files
committed
ci: don't build for doc-only changes
Commit 0c55e10 introduced a non-optional build step, but it is not needed when doing doc-only changes. Fixes: 0c55e10 Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 8f0c630 commit 45a1a1b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.buildkite/pipeline_pr.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"agents": {"ag": 1},
1515
}
1616

17+
changed_files = get_changed_files()
18+
DOC_ONLY_CHANGE = False
19+
if changed_files and all(f.suffix == ".md" for f in changed_files):
20+
DOC_ONLY_CHANGE = True
1721
pipeline = BKPipeline(
1822
priority=DEFAULT_PRIORITY,
1923
timeout_in_minutes=45,
@@ -23,10 +27,9 @@
2327
"label": "🪶 Style",
2428
},
2529
],
30+
with_build_step=not DOC_ONLY_CHANGE,
2631
)
2732

28-
changed_files = get_changed_files()
29-
3033
# run sanity build of devtool if Dockerfile is changed
3134
if any(x.parent.name == "devctr" for x in changed_files):
3235
pipeline.build_group_per_arch(

0 commit comments

Comments
 (0)