Files
react-telegram/.github/workflows/docs.yml
2025-07-01 10:33:13 +08:00

41 lines
997 B
YAML

name: Documentation
on:
push:
branches: [main]
paths:
- '**.md'
- 'packages/*/src/**'
- '.github/workflows/docs.yml'
jobs:
check-docs:
name: Check Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check README files exist
run: |
for package in packages/*/; do
if [ -d "$package" ] && [ ! -f "$package/README.md" ]; then
echo "❌ Missing README.md in $package"
exit 1
fi
done
echo "✅ All packages have README files"
- name: Check for broken links
uses: lycheeverse/lychee-action@v1
with:
args: >
--verbose
--no-progress
--accept 200,204,206,301,302
--exclude-all-private
--exclude "https://github.com/your-username/*"
'./**/*.md'
fail: false