-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.11 KB
/
ci.yml
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
39
40
41
42
name: Update Documentation
on:
push:
branches:
- main
paths:
- 'docs/**/*.md'
- 'docs/images/**' # Add this to track image changes
pull_request:
paths:
- 'docs/**/*.md'
- 'docs/images/**' # Add this to track image changes
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Verify markdown files
run: |
echo "Verifying markdown files..."
find docs -name "*.md" -type f -exec echo "Checking {}" \;
- name: Verify image paths
run: |
echo "Checking image paths..."
find docs -name "*.md" -type f -exec grep -l "!\[.*\](.*)" {} \;
- name: Process images
run: |
echo "Processing documentation images..."
if [ -d "docs/images" ]; then
echo "Found images directory"
ls -la docs/images/
fi
- name: Check relative paths
run: |
echo "Validating relative paths in markdown files..."
# Add specific path validation if needed