Skip to content

Commit d2c9495

Browse files
committed
Remove tmate session, add check for capitalization and spaces
1 parent 6640b32 commit d2c9495

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test-lp.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)