2
0

beta.yml 987 B

1234567891011121314151617181920212223242526272829303132333435363738
  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: write
  17. steps:
  18. - name: Checkout repository
  19. uses: actions/checkout@v4
  20. with:
  21. fetch-depth: 0
  22. - name: Setup Bun
  23. uses: ./.github/actions/setup-bun
  24. - name: Setup Git Committer
  25. id: setup-git-committer
  26. uses: ./.github/actions/setup-git-committer
  27. with:
  28. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  29. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  30. - name: Sync beta branch
  31. env:
  32. GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
  33. run: bun script/beta.ts