Skip to content

Commit c3de439

Browse files
committed
Update markdown lint
1 parent c9d1a22 commit c3de439

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/markdown-lint.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,18 @@ jobs:
2828
- name: Install markdownlint-cli
2929
run: npm install -g markdownlint-cli
3030

31-
- name: Run markdown linting and fix
31+
- name: Get changed markdown files
32+
id: changed-files
33+
uses: tj-actions/changed-files@v44
34+
with:
35+
files: |
36+
comfyui_embedded_docs/docs/**/*.md
37+
38+
- name: Run markdown linting and fix on changed files
39+
if: steps.changed-files.outputs.any_changed == 'true'
3240
run: |
33-
# Find all markdown files and fix linting issues
34-
find comfyui_embedded_docs/docs -name "*.md" -type f | while read file; do
41+
# Only process changed markdown files
42+
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
3543
echo "Fixing linting issues for: $file"
3644
markdownlint --fix "$file" || true
3745
done
@@ -52,7 +60,7 @@ jobs:
5260
run: |
5361
git config --local user.email "[email protected]"
5462
git config --local user.name "GitHub Action"
55-
git add comfyui_embedded_docs/docs/**/*.md
63+
git add ${{ steps.changed-files.outputs.all_changed_files }}
5664
git commit -m "Auto-fix markdown linting issues
5765
5866
🤖 Generated with GitHub Actions

0 commit comments

Comments
 (0)