From 8eb174812da08244d88709031b8a6c29e14fb28a Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 29 Mar 2025 13:35:50 -0600 Subject: [PATCH] chore(workflow): replace manual commit step with AutoFix action for Biome formatting --- .github/workflows/biome.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml index b94ed58d..b5a6648f 100644 --- a/.github/workflows/biome.yml +++ b/.github/workflows/biome.yml @@ -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