37 lines
951 B
YAML
37 lines
951 B
YAML
name: beta
|
|
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
pull_request:
|
|
types: [opened, synchronize, labeled, unlabeled]
|
|
|
|
jobs:
|
|
sync:
|
|
if: |
|
|
github.event_name == 'push' ||
|
|
(github.event_name == 'pull_request' &&
|
|
contains(github.event.pull_request.labels.*.name, 'contributor'))
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: ./.github/actions/setup-bun
|
|
|
|
- name: Setup Git Committer
|
|
id: setup-git-committer
|
|
uses: ./.github/actions/setup-git-committer
|
|
with:
|
|
opencode-app-id: ${{ secrets.OPENCODE_APP_ID }}
|
|
opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}
|
|
|
|
- name: Sync beta branch
|
|
env:
|
|
GH_TOKEN: ${{ steps.setup-git-committer.outputs.token }}
|
|
run: bun script/beta.ts
|