beta.yml 926 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: beta
  2. on:
  3. schedule:
  4. - cron: "0 * * * *"
  5. jobs:
  6. sync:
  7. if: |
  8. github.event_name == 'push' ||
  9. (github.event_name == 'pull_request' &&
  10. contains(github.event.pull_request.labels.*.name, 'contributor'))
  11. runs-on: blacksmith-4vcpu-ubuntu-2404
  12. permissions:
  13. contents: write
  14. pull-requests: write
  15. steps:
  16. - name: Checkout repository
  17. uses: actions/checkout@v4
  18. with:
  19. fetch-depth: 0
  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