Skip to content

Commit eea523c

Browse files
authored
ci: add docs forbidden check (#151)
1 parent b19d884 commit eea523c

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Docs Forbidden Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
docs-forbidden:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Check forbidden items in docs
15+
shell: bash
16+
run: |
17+
set -euo pipefail
18+
forbidden=(
19+
"docs/project-management"
20+
"docs/src"
21+
"docs/package.json"
22+
"docs/node_modules"
23+
)
24+
for path in "${forbidden[@]}"; do
25+
if [ -e "$path" ]; then
26+
echo "Forbidden path exists: $path"
27+
exit 1
28+
fi
29+
done
30+
echo "docs forbidden items: OK"

0 commit comments

Comments
 (0)