molecule-ci/.github/workflows
Hongming Wang 9d67da3ef9 feat(auto-promote): extract as reusable workflow_call for org-wide adoption
Splits auto-promote-staging.yml into:

  - auto-promote-branch.yml — new reusable workflow with
    `on: workflow_call`. Inputs `from-branch` (default 'staging') and
    `to-branch` (default 'main'). Repo-agnostic: gates are read from
    the consuming repo's branch protection at run time, not hardcoded.

  - auto-promote-staging.yml — molecule-ci's own self-running flow,
    now a ~25-line wrapper that calls the reusable workflow with
    staging→main hardcoded. Trigger and behavior unchanged for
    molecule-ci itself.

Adoption pattern in any consumer repo:

    # .github/workflows/auto-promote.yml
    name: Auto-promote staging → main
    on:
      push:
        branches: [staging]
      workflow_dispatch:
    permissions:
      contents: write
      statuses: read
    jobs:
      promote:
        uses: Molecule-AI/molecule-ci/.github/workflows/auto-promote-branch.yml@main
        with:
          from-branch: staging
          to-branch: main

Excluded by policy: molecule-core + molecule-controlplane stay
manual per CEO directive 2026-04-24. Those repos do NOT adopt the
reusable workflow; the extraction adds no surface to repos that
don't call it.

Closes monorepo task #93.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 18:33:01 -07:00
..
auto-promote-branch.yml feat(auto-promote): extract as reusable workflow_call for org-wide adoption 2026-04-27 18:33:01 -07:00
auto-promote-staging.yml feat(auto-promote): extract as reusable workflow_call for org-wide adoption 2026-04-27 18:33:01 -07:00
disable-auto-merge-on-push.yml feat(reusable): disable auto-merge when a new commit is pushed (#10) 2026-04-27 06:38:57 -07:00
publish-template-image.yml feat(reusable): forward runtime_version as RUNTIME_VERSION build-arg (#12) 2026-04-27 07:44:34 -07:00
validate-org-template.yml fix(CI): embed Python secrets scanner inline in workflow, drop nested checkout 2026-04-21 11:13:28 +00:00
validate-plugin.yml fix(CI): embed Python secrets scanner inline in workflow, drop nested checkout 2026-04-21 11:13:28 +00:00
validate-workspace-template.yml fix(CI): embed Python secrets scanner inline in workflow, drop nested checkout 2026-04-21 11:13:28 +00:00