feat: dispatch release event to mellea-contribs#1179
Draft
avinash2692 wants to merge 1 commit into
Draft
Conversation
Adds a workflow that sends a repository_dispatch event to mellea-contribs whenever a stable mellea release is published. Skips pre-releases. workflow_dispatch is provided for manual recovery. Authenticates to mellea-contribs via a GitHub App: the workflow mints a short-lived installation token at runtime using actions/create-github-app-token, scoped to mellea-contribs only. Requires two repo secrets: CONTRIBS_DISPATCHER_APP_ID and CONTRIBS_DISPATCHER_PRIVATE_KEY. Assisted-by: Claude Opus 4.7 (1M context) Signed-off-by: Avinash Balakrishnan <avinash.bala@us.ibm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a workflow that fires a
repository_dispatchevent (event_type=mellea-released) togenerative-computing/mellea-contribswhenever a stable mellea GitHub Release is published. The contribs receiver bumps every subpackage'smellea>=constraint andproject.version, refreshes lock files, and opens a PR there — see generative-computing/mellea-contribs#63 for that side.Pre-releases are skipped — only stable releases dispatch.
Files
.github/workflows/dispatch-to-contribs.yml— fires onrelease: published(skipping pre-releases) and supportsworkflow_dispatchfor manual recovery. Authenticates to mellea-contribs via a GitHub App; mints a short-lived installation token at runtime.Required setup before this lands
This workflow authenticates to
mellea-contribsvia a GitHub App. One-time setup by an org admin:generative-computingorg:mellea-contribs-dispatcherContents: Read and write,Metadata: Read-only.pemfile).generative-computing/mellea-contribsonly.generative-computing/mellea(this repo):CONTRIBS_DISPATCHER_APP_ID— the App's numeric App ID (visible on the App settings page)CONTRIBS_DISPATCHER_PRIVATE_KEY— the contents of the downloaded.pemfile (paste as-is, including header/footer lines)If either secret is missing or the App isn't installed on contribs when the workflow fires, the
actions/create-github-app-tokenstep fails loudly and contribs stays unchanged. The manualworkflow_dispatchis the recovery path once setup is fixed.Testing
The contribs receiver was sandbox-tested independently. End-to-end (release → dispatch → contribs PR) will be exercised on the next stable mellea release; manual recovery is the documented escape hatch:
Status
Opened as draft until the GitHub App is set up and secrets are configured. Will be marked ready for review after that.
The receiver in contribs (PR #63) is safe to land independently.