beta.yml 948 B

123456789101112131415161718192021222324252627282930313233343536
  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. - name: Setup Bun
  21. uses: ./.github/actions/setup-bun
  22. - name: Setup Git Committer
  23. id: setup-git-committer
  24. uses: ./.github/actions/setup-git-committer
  25. with:
  26. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  27. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  28. - name: Sync beta branch
  29. env:
  30. GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
  31. run: bun script/beta.ts