Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cscnk52 authored Oct 24, 2024
2 parents 4e912f9 + ab6e1ce commit 7d2e003
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/prettier-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,19 @@ jobs:
if: failure()
run: |
echo "The following Markdown files are not properly formatted:"
prettier --list-different --write "**/*.md"
prettier --list-different "**/*.md"
# Step 6: try auto fix
- name: Auto Fix
if: failure()
run: |
prettier --write "**/*.md"
- name: Commit and Push
if: failure()
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add .
git commit -m "Fix markdown formatting"
git push

0 comments on commit 7d2e003

Please sign in to comment.