name: Code Formatting on: push: branches: [main] jobs: format: runs-on: ubuntu-latest permissions: contents: write actions: write steps: - uses: actions/checkout@v6 with: ssh-key: ${{ secrets.AUTOCOMMIT_KEY }} - name: Setup Bun uses: oven-sh/setup-bun@v2 with: bun-version-file: ".bun-version" - name: Install dependencies run: bun install --frozen-lockfile - name: Format code run: bun format - name: Commit formatted changes run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add . git diff --staged --quiet || git commit -m "🎨 Auto-format code [skip ci]" git push --no-verify