Commit 2c52bb1
ci: skip expensive jobs on docs-only changes (#78)
## Summary
- Adds a `changes` detection job to `functional-tests.yml` and
`docker-publish.yml`
- `test`, `build-and-push`, and `pre-merge-cd-check` skip when only
`.md` files changed
- Adds `paths-ignore` to `codeql.yml` PR trigger for docs files
- No version bump
## How it works
The `changes` job runs `git diff` and counts files that do not match
`*.md`, `LICENSE`, or `.github/ISSUE_TEMPLATE/**`. If the count is zero,
it outputs `code=false`.
Expensive jobs gate on `needs.changes.outputs.code == true`. When false,
the jobs are **skipped** -- GitHub branch protection treats skipped as
passing, so required checks are satisfied and docs-only PRs remain
mergeable.
## Edge cases handled
- Force push / first push / workflow_dispatch (no base SHA): always
treated as code change
- Mixed PR (.md + .ts): code=true, CI runs normally
- Workflow file changes: code=true, CI runs
## Test plan
- [ ] This PR (workflow .yml changes) runs all jobs normally
- [ ] After merge: open a docs-only PR, confirm test / build-and-push /
pre-merge-cd-check show as skipped (green) and PR is mergeable
Generated with Claude Code
Signed-off-by: Paradoxbound <paradoxbound@users.noreply.github.com>
Co-authored-by: Paradoxbound <paradoxbound@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 352eabd commit 2c52bb1
3 files changed
Lines changed: 97 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
19 | 60 | | |
20 | 61 | | |
21 | 62 | | |
| |||
59 | 100 | | |
60 | 101 | | |
61 | 102 | | |
62 | | - | |
| 103 | + | |
63 | 104 | | |
64 | 105 | | |
| 106 | + | |
65 | 107 | | |
66 | 108 | | |
67 | 109 | | |
| |||
550 | 592 | | |
551 | 593 | | |
552 | 594 | | |
553 | | - | |
| 595 | + | |
554 | 596 | | |
| 597 | + | |
555 | 598 | | |
556 | 599 | | |
557 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
13 | 54 | | |
| 55 | + | |
14 | 56 | | |
15 | | - | |
16 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
17 | 63 | | |
18 | 64 | | |
19 | 65 | | |
| |||
0 commit comments