beta.yml 779 B

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