chore(workflow): replace manual commit step with AutoFix action for Biome formatting

This commit is contained in:
Mauricio Siu
2025-03-29 13:35:50 -06:00
parent be77f114eb
commit 8eb174812d

View File

@@ -29,11 +29,5 @@ jobs:
- name: Run Biome formatter
run: pnpm biome format . --write
- name: Commit changes if needed
run: |
BRANCH=$(echo "${{ github.head_ref || github.ref_name }}")
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "chore: auto-format with Biome"
git push origin HEAD:$BRANCH --force
- name: AutoFix
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef