-
-
Notifications
You must be signed in to change notification settings - Fork 635
38 lines (34 loc) · 924 Bytes
/
check-docs-sidebar.yml
File metadata and controls
38 lines (34 loc) · 924 Bytes
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
37
38
name: Check Docs Sidebar
permissions:
contents: read
on:
push:
branches: [main]
paths:
- 'docs/oss/**'
- 'docs/pro/**'
- 'docs/sidebars.ts'
- 'docs/.sidebar-exclusions'
- 'script/check-docs-sidebar'
- '.github/workflows/check-docs-sidebar.yml'
pull_request:
paths:
- 'docs/oss/**'
- 'docs/pro/**'
- 'docs/sidebars.ts'
- 'docs/.sidebar-exclusions'
- 'script/check-docs-sidebar'
- '.github/workflows/check-docs-sidebar.yml'
workflow_dispatch:
jobs:
check-sidebar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Check new docs have sidebar entries
env:
BASE_REF: ${{ github.event.pull_request.base.sha || github.event.before || 'origin/main' }}
run: script/check-docs-sidebar "$BASE_REF"