File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments