beta.yml 947 B

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