beta.yml 832 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. steps:
  12. - name: Checkout repository
  13. uses: actions/checkout@v4
  14. with:
  15. fetch-depth: 0
  16. - name: Setup Bun
  17. uses: ./.github/actions/setup-bun
  18. - name: Setup Git Committer
  19. id: setup-git-committer
  20. uses: ./.github/actions/setup-git-committer
  21. with:
  22. opencode-app-id: ${{ vars.OPENCODE_APP_ID }}
  23. opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
  24. - name: Sync beta branch
  25. env:
  26. GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
  27. DISCORD_ISSUES_WEBHOOK_URL: ${{ secrets.DISCORD_ISSUES_WEBHOOK_URL }}
  28. run: bun script/beta.ts