Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

ci: scope PR workflow runs by changed paths (#1067)

JD Davisff221e634633
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 154528daf..4ead4e7d3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,6 +16,10 @@ on:
branches: [main]
pull_request:
branches: [main]
+ paths-ignore:
+ - 'docs/**'
+ - 'wiki/**'
+ - '**/*.md'
workflow_dispatch:
permissions:
@@ -54,7 +58,6 @@ jobs:
- 'Cargo.lock'
- 'tests/**'
- 'scripts/**'
- - '.github/workflows/ci.yml'
e2e:
- 'headroom/**'
- 'crates/**'
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 4a6c7b9cb..63eaf1197 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -1,6 +1,13 @@
name: Deploy Documentation
on:
+ pull_request:
+ branches: [main]
+ paths:
+ - 'docs/**'
+ - 'wiki/**'
+ - 'mkdocs.yml'
+ - '.github/workflows/docs.yml'
push:
branches:
- main
@@ -11,11 +18,39 @@ on:
workflow_dispatch:
permissions:
- contents: write
+ contents: read
jobs:
+ validate:
+ if: github.event_name == 'pull_request'
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Set up Python
+ uses: actions/setup-python@v6
+ with:
+ python-version: '3.11'
+
+ - name: Cache pip
+ uses: actions/cache@v5
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-pip-docs-${{ hashFiles('mkdocs.yml') }}
+ restore-keys: ${{ runner.os }}-pip-docs-
+
+ - name: Install dependencies
+ run: pip install mkdocs-material
+
+ - name: Build docs
+ run: mkdocs build
+
deploy:
+ if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
+ permissions:
+ contents: write
steps:
- uses: actions/checkout@v6
with:
diff --git a/scripts/validate-workflows.sh b/scripts/validate-workflows.sh
index 022b8e803..ea8f69d64 100644
--- a/scripts/validate-workflows.sh
+++ b/scripts/validate-workflows.sh
@@ -34,4 +34,6 @@ run_act act release -W .github/workflows/release.yml -e .github/act/release-publ
run_act act push -W .github/workflows/release-please.yml -e .github/act/push-feat.json -n
run_act act pull_request_target -W .github/workflows/pr-health.yml -e .github/act/pr-governance-invalid.json -n
run_act act pull_request_target -W .github/workflows/pr-health.yml -e .github/act/pr-governance-valid.json -n
+run_act act pull_request -W .github/workflows/docs.yml -n
+run_act act workflow_dispatch -W .github/workflows/docs.yml -n
run_act act workflow_dispatch -W .github/workflows/docker.yml -e .github/act/docker-version.json -n