File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,21 @@ jobs:
1818 with :
1919 files : |
2020 **.md
21+ - name : Check for capital letters or spaces in content directory
22+ run : |
23+ echo "Checking for capital letters or spaces in content directory paths..."
24+
25+ git diff --name-only origin/${{ github.base_ref }}...HEAD |
26+ grep '^content/' |
27+ grep -E '[A-Z]|[[:space:]]' && {
28+ echo "❌ Found invalid file or directory names with capital letters or spaces in 'content/'"
29+ exit 1
30+ }
31+
32+ echo "✅ No capital letters or spaces found in 'content/' paths."
2133 - name : Install dependencies
2234 if : steps.changed-markdown-files.outputs.any_changed == 'true'
2335 run : pip install -r tools/requirements.txt
24- - name : Setup tmate session
25- uses : mxschmitt/action-tmate@v3
2636 - name : Run test suite for all changed .md files
2737 id : run-suite
2838 if : steps.changed-markdown-files.outputs.any_changed == 'true'
You can’t perform that action at this time.
0 commit comments