File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 88 branches :
99 - main
1010
11+ permissions :
12+ contents : write
13+
1114jobs :
1215 lint :
1316 runs-on : ubuntu-latest
2831 if : steps.changed-files.outputs.any_changed == 'true'
2932 with :
3033 globs : ${{ steps.changed-files.outputs.all_changed_files }}
31- separator : " ,"
34+ separator : " ,"
35+ fix : true
36+
37+ # Check if anything was fixed, then Commit & Push
38+ - name : Commit and push fixes
39+ if : always() && steps.changed-files.outputs.any_changed == 'true'
40+ run : |
41+ # Configure the bot's identity
42+ git config --global user.name "github-actions[bot]"
43+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
44+
45+ # Check if the linter modified any files
46+ if [[ -n $(git status -s) ]]; then
47+ git add .
48+ git commit -m "style: auto-fix markdown formatting"
49+ git push
50+ fi
You can’t perform that action at this time.
0 commit comments