format.yml 592 B

123456789101112131415161718192021222324252627282930
  1. name: format
  2. on:
  3. push:
  4. branches-ignore:
  5. - production
  6. pull_request:
  7. branches-ignore:
  8. - production
  9. workflow_dispatch:
  10. jobs:
  11. format:
  12. runs-on: blacksmith-4vcpu-ubuntu-2404
  13. permissions:
  14. contents: write
  15. steps:
  16. - name: Checkout repository
  17. uses: actions/checkout@v4
  18. with:
  19. token: ${{ secrets.GITHUB_TOKEN }}
  20. ref: ${{ github.head_ref || github.ref }}
  21. - name: Setup Bun
  22. uses: ./.github/actions/setup-bun
  23. - name: run
  24. run: |
  25. ./script/format.ts
  26. env:
  27. CI: true