ci(docs): run docs check on every PR so its required check reports

The Docs workflow (`links` job) is a required status check, but its
trigger was `paths:`-filtered to markdown/docs files. A PR touching only
code never triggered it, so the required check never reported and the merge
box stayed BLOCKED forever waiting for a status that would never arrive.

Drop the `paths:` filter: `make docs-check` validates the whole doc tree
independent of the PR diff and runs in seconds, so it is cheap to report on
every PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
zhanghui
2026-07-24 16:12:59 +08:00
co-authored by Claude Opus 4.8
parent a59d385d23
commit e85db903a2
+5 -20
View File
@@ -1,29 +1,14 @@
name: Docs
# Runs on EVERY pull request / push to main — no `paths:` filter. When `links`
# is a required status check, path-filtering it silently blocks code-only PRs:
# the workflow is skipped, the required check never reports, and the merge box
# waits forever. `make docs-check` validates the whole doc tree regardless of
# what a PR touched and takes only seconds, so it is cheap to always report.
on:
pull_request:
paths:
- "**/*.md"
- ".github/ISSUE_TEMPLATE/**"
- ".github/PULL_REQUEST_TEMPLATE.md"
- ".github/workflows/docs.yml"
- ".claude/skills/**/*.md"
- "CLAUDE.md"
- "CONTRIBUTING.md"
- "scripts/check_docs.py"
- "scripts/check_github_contributor_docs.py"
push:
branches: [main]
paths:
- "**/*.md"
- ".github/ISSUE_TEMPLATE/**"
- ".github/PULL_REQUEST_TEMPLATE.md"
- ".github/workflows/docs.yml"
- ".claude/skills/**/*.md"
- "CLAUDE.md"
- "CONTRIBUTING.md"
- "scripts/check_docs.py"
- "scripts/check_github_contributor_docs.py"
permissions:
contents: read