Skip to content

Commit bc4f27c

Browse files
authored
ci: skip changelog-only workflow runs (#83215)
Summary Problem: root CHANGELOG.md updates currently cause broad pull request and push workflow activity, including CI and workflow sanity fanout, even though changelog-only edits do not touch product, runtime, docs site, or workflow logic. Why it matters: the PR workflow (review, prepare, and land) can add or adjust CHANGELOG.md entries while processing otherwise-ready PRs. Those changelog-only updates retrigger gates, delay landing, and create avoidable contention when several PRs are being landed close together. What changed: CI now ignores pull requests whose only changed path is CHANGELOG.md; Workflow Sanity ignores changelog-only pull requests and main-branch pushes; Docs keeps its markdown/docs trigger but excludes root CHANGELOG.md from the push path set. What did NOT change (scope boundary): metadata-only automation such as labelers, auto-response, real behavior proof, or external GitHub apps can still run on PR events because those workflows are event-driven rather than file-scope CI. Other markdown files, docs files, and workflow files still trigger their existing checks.
1 parent 6baa2b3 commit bc4f27c

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020
- "docs/**"
2121
pull_request:
2222
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft]
23+
paths-ignore:
24+
- "CHANGELOG.md"
2325

2426
permissions:
2527
contents: read

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
paths:
77
- "**/*.md"
88
- "docs/**"
9+
- "!CHANGELOG.md"
910

1011
permissions:
1112
contents: read

.github/workflows/workflow-sanity.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ name: Workflow Sanity
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- "CHANGELOG.md"
57
push:
68
branches: [main]
9+
paths-ignore:
10+
- "CHANGELOG.md"
711
workflow_dispatch:
812

913
permissions:

0 commit comments

Comments
 (0)