format.yml 640 B

12345678910111213141516171819202122232425262728293031
  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. - name: Setup Bun
  21. uses: ./.github/actions/setup-bun
  22. - name: run
  23. run: |
  24. ./script/format.ts
  25. env:
  26. CI: true
  27. GITHUB_HEAD_REF: ${{ github.head_ref }}
  28. GITHUB_REF_NAME: ${{ github.ref_name }}