Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,27 @@
# managed and has none of those, so it builds the site directly.
name: Book

# The mirror image of ci.yml's filter: this runs only when something the book
# is actually built from changed. The workflow file itself is listed, so a
# change to these steps is still exercised by the pull request that makes it.
#
# `**.md` is deliberately broad - it catches collector/README.md and the root
# README, neither of which is in the site, but a false positive here costs one
# cheap build while a false negative ships a broken link.
on:
pull_request:
paths:
- '**.md'
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/book.yml'
push:
branches: [main]
paths:
- '**.md'
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/book.yml'

permissions:
contents: read
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@
# code - it passed on all three.
name: CI

# Skipped when a change touches only prose. Splitting the README into docs/
# means most doc edits are pure markdown, and running the collector tests,
# compose parsing and dashboard checks over them says nothing - it only makes
# the PR slower and trains people to ignore the checks. A mixed pull request
# still runs everything: paths-ignore skips the workflow only when *every*
# changed file matches.
#
# Note main is currently unprotected. If required status checks are ever turned
# on, a workflow skipped this way never reports and the merge button blocks
# forever - the fix then is a same-named no-op job, not removing the filter.
on:
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
- 'mkdocs.yml'
push:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
- 'mkdocs.yml'

permissions:
contents: read
Expand Down
Loading