Overhaul SDK dispatch for versioned OAS files (dry-run)#180
Merged
Conversation
added 4 commits
February 18, 2026 13:36
New workflow that detects changes to versioned OAS files (openapi/v*.yml) on PR merge, builds api_versions list, reads version label (minor/patch), and dispatches to opted-in SDK repos only. Currently in DRY RUN mode — logs what it would send without dispatching. Includes workflow_dispatch for manual runs with version/api_versions inputs. Only mx-platform-node opted in initially.
Old workflow dispatched to all 6 SDK repos on any mx_platform_api.yml change. Replaced by versioned-sdk-dispatch.yml which detects versioned OAS files and dispatches only to opted-in repos. Kept as .bak for reference.
Changed-files check now includes openapi/v*.yml in addition to mx_platform_api.yml. PRs that modify versioned OAS files now require a minor or patch label before merge.
Replaced static mx_platform_api.yml reference with dynamic discovery of changed versioned OAS files (openapi/v*.yml). Uses a discover job to build a matrix from changed files, then cross-products with the language matrix. Only runs generation validation for OAS files actually modified in the PR.
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.
PR 1 of 3 — Detection and dry-run validation only. No live dispatches are sent.
What this does
Replaces the old
update.ymldispatch (which triggered all 6 SDK repos on anymx_platform_api.ymlchange) with a new versioned-file-aware workflow that detects changes toopenapi/v*.ymlfiles and dispatches only to opted-in SDK repos.Changes
versioned-sdk-dispatch.ymlminor/patchfrom PR labels, buildsapi_versionslist, logs dry-run payload.workflow_dispatchfor manual runs. Onlymx-platform-nodeopted in.update.yml→update.yml.bak.bakfiles. Kept for reference.version.ymlminor/patch) now applies toopenapi/v*.yml(removed check formx_platform_api.ymlsince it will no longer be maintained).sdk-generation-validation.ymlHow to validate
Merge this PR, then open a follow-up PR that makes a trivial change to
v20111101.yml(labeledminor). On merge, verify:versioned-sdk-dispatch.ymlfires — dry-run logs show correct file detection, label reading, and payloadupdate.ymldoes not firesdk-generation-validation.ymlran validation only for the changed OAS fileWhat comes next
echowith liverepository_dispatch(arms the workflow, but nov*.ymlchanges in that PR so it won't fire)v20111101.yml— first live dispatch tomx-platform-node