diff --git a/.github/workflows/sync-from-pro.yml b/.github/workflows/sync-from-pro.yml index 44e64d1a..0d745911 100644 --- a/.github/workflows/sync-from-pro.yml +++ b/.github/workflows/sync-from-pro.yml @@ -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" @@ -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 @@ -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 }} diff --git a/SYNC.md b/SYNC.md index 19741f5e..68ed16cd 100644 --- a/SYNC.md +++ b/SYNC.md @@ -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-` 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. @@ -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