Skip to content

ci: auto-sync main → develop after each release #47

Description

@JoseVelazcoH

Problem

release-please commits version bumps (manifest, pyproject.toml, __init__.py, CHANGELOG) directly to main. With the GitFlow develop → main setup, those commits never flow back to develop, so develop drifts behind on version metadata.

This already happened: after the 0.5.0 release, develop was left at 0.3.0 until a manual main → develop sync. It also caused a wrong version prediction (reading develop's stale manifest instead of main's released state).

Current workaround

Manually run main → develop (fast-forward) after merging each release PR.

Proposed

A workflow that opens (or fast-forwards) a main → develop sync PR when release-please publishes a release, so develop always picks up the bump commits and starts each cycle clean.

Notes

  • The default GITHUB_TOKEN does not chain-trigger workflows, so auto-merging the sync may need a PAT.
  • Alternatively, a scheduled or workflow_dispatch job that fast-forwards develop to main when main is strictly ahead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions