this repo has no description
at main 37 lines 825 B view raw
1name: Code Formatting 2 3on: 4 push: 5 branches: [main] 6 7jobs: 8 format: 9 runs-on: ubuntu-latest 10 11 permissions: 12 contents: write 13 actions: write 14 15 steps: 16 - uses: actions/checkout@v6 17 with: 18 ssh-key: ${{ secrets.AUTOCOMMIT_KEY }} 19 20 - name: Setup Bun 21 uses: oven-sh/setup-bun@v2 22 with: 23 bun-version-file: ".bun-version" 24 25 - name: Install dependencies 26 run: bun install --frozen-lockfile 27 28 - name: Format code 29 run: bun format 30 31 - name: Commit formatted changes 32 run: | 33 git config --local user.email "action@github.com" 34 git config --local user.name "GitHub Action" 35 git add . 36 git diff --staged --quiet || git commit -m "🎨 Auto-format code [skip ci]" 37 git push --no-verify