Set these in repositories that publish template migrations with .github/workflows/template-publish-migration.yml.
| Name | Required | Description |
|---|
TEMPLATE_SYNC_PACKAGE | No | Package spec installed by the workflow with npm --ignore-scripts. Defaults to template-subscriber-migration-system@latest; change it to pin a version, git URL, or tarball URL. |
OPENAI_MODEL | No | Model used for optional migration summary generation. Defaults to gpt-5.5. |
| Name | Required | Description |
|---|
GITHUB_TOKEN | Built in | GitHub Actions token used to read PRs and publish release assets. No manual secret is needed. |
OPENAI_API_KEY | Only when generate_summary is true | OpenAI API key for one-time migration summary generation. |
The template repository does not need OPENAI_API_KEY unless optional summary generation is enabled.
Set these in repositories that receive template migrations with .github/workflows/template-sync.yml and .github/workflows/template-migration-command.yml.
| Name | Required | Description |
|---|
TEMPLATE_SYNC_PACKAGE | No | Package spec installed by the workflow with npm --ignore-scripts. Defaults to template-subscriber-migration-system@latest; change it to pin a version, git URL, or tarball URL. |
TEMPLATE_SYNC_DEFAULT_UPSTREAM_REPO | Yes | Default upstream template repository in OWNER/REPO form. |
OPENAI_MODEL | No | Model used for generation. Defaults to gpt-5.5 in the workflow example. |
| Name | Required | Description |
|---|
TEMPLATE_SYNC_BOT_TOKEN | Yes | Token for opening PRs, pushing commits, writing comments, labels, and variables. |
OPENAI_API_KEY | Yes | OpenAI API key for approve and revise generation. |
TEMPLATE_SYNC_UPSTREAM_READ_TOKEN | No | Token for reading private template releases. |
Subscriber workflows create and update these automatically:
| Name | Description |
|---|
TEMPLATE_SYNC_LAST_HANDLED_MIGRATION_ID | Newest migration opened, applied, or declined. |
TEMPLATE_SYNC_LAST_APPLIED_MIGRATION_ID | Newest migration applied. |
TEMPLATE_SYNC_LAST_DECLINED_MIGRATION_ID | Newest migration declined. |
TEMPLATE_SYNC_UPSTREAM_REPO | Optional upstream override for one subscriber. |