Skip to content

Commit e071ef7

Browse files
authored
[Docs Site] Lint file extensions in content folder (#25072)
* [Docs Site] Lint file extensions in content folder * add back exit
1 parent fb9321f commit e071ef7

File tree

11 files changed

+20
-3
lines changed

11 files changed

+20
-3
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ jobs:
2727
node_modules/.astro/assets
2828
key: static
2929

30+
- run: |
31+
FILES=$(
32+
find src/content \
33+
-type f \
34+
-not -name '*.mdx' \
35+
-not -name '*.md' \
36+
-not -name '*.json' \
37+
-not -name '*.yml' \
38+
-not -name '*.yaml' \
39+
-not -name '*.txt'
40+
)
41+
42+
if [ -n "$FILES" ]; then
43+
echo "Found files with invalid file extensions:\n\n$FILES"
44+
exit 1
45+
fi
46+
3047
- run: npm ci
3148

3249
- run: npx tsx bin/post-codeowners-comment/index.ts
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)