Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/sync-from-pro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
pro_ref:
description: Branch, tag or commit of chaibuilder/pro to sync from
required: false
default: dev
default: main
schedule:
- cron: "0 6 * * 1"

Expand All @@ -45,7 +45,7 @@ jobs:
uses: actions/checkout@v7
with:
repository: chaibuilder/pro
ref: ${{ github.event.inputs.pro_ref || 'dev' }}
ref: ${{ github.event.inputs.pro_ref || 'main' }}
token: ${{ secrets.PRO_READ_TOKEN }}
path: pro
fetch-depth: 0
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
# a push token in scope.
env:
GH_TOKEN: ${{ secrets.SYNC_PR_TOKEN }}
PRO_REF: ${{ github.event.inputs.pro_ref || 'dev' }}
PRO_REF: ${{ github.event.inputs.pro_ref || 'main' }}
SYNC_SHORT: ${{ steps.apply.outputs.short }}
SYNC_SUBJECT: ${{ steps.apply.outputs.subject }}
BASE_BRANCH: ${{ github.event.repository.default_branch }}
Expand Down
4 changes: 2 additions & 2 deletions SYNC.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ carry only what it synced.
chaibuilder/core has a `Sync from pro` GitHub Actions workflow (`.github/workflows/sync-from-pro.yml`)
that runs the same script on a runner and opens a `sync/pro-<sha>` pull request with the
preview in its body — no local checkouts needed. Start it from the Actions tab (input: the pro
ref, default `dev`) or let the weekly schedule run it. It needs two repository secrets: a
ref, default `main`) or let the weekly schedule run it. It needs two repository secrets: a
read-only token for the private pro repo and a token that may push and open pull requests
(the default `GITHUB_TOKEN` cannot read pro, and pull requests it opens do not trigger CI).
Merge that pull request like any other sync: merge commit or rebase, never squash.
Expand All @@ -83,7 +83,7 @@ details are in the body and in git trailers:
```
chore(sync): pro@a1b2c3d

Sync src/ from chaibuilder/pro (dev) into chaibuilder/core.
Sync src/ from chaibuilder/pro (main) into chaibuilder/core.

Source commits since last sync (.sync-ref was pro@9f8e7d6):
a1b2c3d feat(builder): outline insertion placeholder
Expand Down
Loading