beta.yml 850 B

12345678910111213141516171819202122232425262728293031323334
  1. name: beta
  2. on:
  3. push:
  4. branches: [dev]
  5. pull_request:
  6. types: [opened, synchronize, labeled, unlabeled]
  7. jobs:
  8. sync:
  9. if: |
  10. github.event_name == 'push' ||
  11. (github.event_name == 'pull_request' &&
  12. contains(github.event.pull_request.labels.*.name, 'contributor'))
  13. runs-on: blacksmith-4vcpu-ubuntu-2404
  14. permissions:
  15. contents: write
  16. pull-requests: read
  17. steps:
  18. - name: Checkout repository
  19. uses: actions/checkout@v4
  20. - name: Setup Bun
  21. uses: ./.github/actions/setup-bun
  22. - name: Configure Git
  23. run: |
  24. git config user.name "github-actions[bot]"
  25. git config user.email "github-actions[bot]@users.noreply.github.com"
  26. - name: Sync beta branch
  27. env:
  28. GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  29. run: bun script/beta.ts