mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 21:06:50 +00:00
Add CI to only use markdown extension for integrations (#39283)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
a6e059d9bb
commit
d77d60b323
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -14,6 +14,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
- name: Check for .md files and suggest renaming
|
||||||
|
run: |
|
||||||
|
echo "Checking for .md files in source/_integrations..."
|
||||||
|
MD_FILES=$(find source/_integrations -type f -name "*.md")
|
||||||
|
if [ -n "$MD_FILES" ]; then
|
||||||
|
echo "Found the following .md files:"
|
||||||
|
echo "$MD_FILES"
|
||||||
|
echo "⚠️ Please rename these files from .md to .markdown"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
env:
|
env:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user