From cd4075faf6b9cc80e4f9bdf2b8d4da359b0d8718 Mon Sep 17 00:00:00 2001 From: Dax Date: Thu, 29 Jan 2026 15:02:36 -0500 Subject: feat: add beta branch sync workflow for contributor PRs (#11190) --- .github/workflows/beta.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/beta.yml (limited to '.github/workflows/beta.yml') diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml new file mode 100644 index 000000000..d92133ea6 --- /dev/null +++ b/.github/workflows/beta.yml @@ -0,0 +1,34 @@ +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: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Bun + uses: ./.github/actions/setup-bun + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Sync beta branch + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: bun script/beta.ts -- cgit v1.2.3