beta.yml 866 B

12345678910111213141516171819202122232425262728293031323334
  1. name: beta
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. types: [labeled]
  6. jobs:
  7. sync:
  8. if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'beta'
  9. runs-on: blacksmith-4vcpu-ubuntu-2404
  10. permissions:
  11. contents: write
  12. pull-requests: write
  13. steps:
  14. - name: Checkout repository
  15. uses: actions/checkout@v4
  16. with:
  17. fetch-depth: 0
  18. - name: Setup Bun
  19. uses: ./.github/actions/setup-bun
  20. - name: Setup Git Committer
  21. id: setup-git-committer
  22. uses: ./.github/actions/setup-git-committer
  23. with:
  24. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  25. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  26. - name: Sync beta branch
  27. env:
  28. GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
  29. run: bun script/beta.ts