Skip to content

Commit f5c9947

Browse files
CI: documentation changes don't trigger builds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e022d85 commit f5c9947

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/robostack.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def generate_gha(distro: str, args: list[str]) -> int:
227227
def changed_distros(base: str) -> list[str]:
228228
out = subprocess.run(["git", "diff", "--name-only", f"{base}...HEAD"], cwd=ROOT,
229229
capture_output=True, text=True, check=True).stdout.split()
230+
out = [f for f in out if not f.endswith(".md") and f != "LICENSE"] # docs don't need builds
230231
if any(not f.startswith(PER_DISTRO_PREFIX) for f in out):
231232
return distros() # shared files changed: every distribution is affected
232233
return sorted({f.split("/")[1] for f in out if f.count("/") >= 2} & set(distros()))

0 commit comments

Comments
 (0)