summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorDax <[email protected]>2026-01-29 15:02:36 -0500
committerGitHub <[email protected]>2026-01-29 20:02:36 +0000
commitcd4075faf6b9cc80e4f9bdf2b8d4da359b0d8718 (patch)
treee6ccd562def74e1ab415f086311d8d250411db56 /.github/workflows
parent33311e99500fa78aeb22be0dee19d0bf9c0296c6 (diff)
downloadopencode-cd4075faf6b9cc80e4f9bdf2b8d4da359b0d8718.tar.gz
opencode-cd4075faf6b9cc80e4f9bdf2b8d4da359b0d8718.zip
feat: add beta branch sync workflow for contributor PRs (#11190)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/beta.yml34
-rw-r--r--.github/workflows/nix-desktop.yml.disabled9
-rw-r--r--.github/workflows/publish.yml1
3 files changed, 44 insertions, 0 deletions
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
diff --git a/.github/workflows/nix-desktop.yml.disabled b/.github/workflows/nix-desktop.yml.disabled
index e14dce96b..031eff6a6 100644
--- a/.github/workflows/nix-desktop.yml.disabled
+++ b/.github/workflows/nix-desktop.yml.disabled
@@ -1,6 +1,15 @@
name: nix-desktop
on:
+ push:
+ branches: [dev]
+ paths:
+ - "flake.nix"
+ - "flake.lock"
+ - "nix/**"
+ - "packages/app/**"
+ - "packages/desktop/**"
+ - ".github/workflows/nix-desktop.yml"
pull_request:
paths:
- "flake.nix"
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 2966ceb66..caa9aca31 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -6,6 +6,7 @@ on:
branches:
- ci
- dev
+ - beta
- snapshot-*
workflow_dispatch:
inputs: