-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.06 KB
/
ci-docs.yml
File metadata and controls
36 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
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
# Sentinel workflow for docs-only PRs.
#
# When a PR touches only *.md / docs / README files, the main CI workflow
# (ci.yml) is skipped entirely via paths-ignore. GitHub does NOT automatically
# mark required checks as passing when a workflow is never triggered — it only
# does so when a workflow is triggered but individual jobs are skipped.
#
# This workflow fills that gap: it runs only for docs-only PRs and immediately
# satisfies the two required checks ("CI check" and "Analyze
# (javascript-typescript)") so branch protection does not block the merge.
#
# For mixed PRs (docs + code), both this workflow and ci.yml trigger.
# All checks pass, no conflict.
name: CI (docs-only)
on:
pull_request:
branches: [main]
paths:
- "**/*.md"
- "docs/**"
- "examples/**/README.md"
jobs:
check:
name: CI check
runs-on: ubuntu-latest
steps:
- run: echo "Docs-only PR — full CI skipped"
analyze:
name: Analyze (javascript-typescript)
runs-on: ubuntu-latest
steps:
- run: echo "Docs-only PR — CodeQL skipped"