beta.yml 869 B

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