Skip to content

[CI] Request SDK upgrade after publishing API client - #128

Open
michaelshin wants to merge 1 commit into
mainfrom
michaelshin/dispatch-sdk-client-upgrade
Open

michaelshin wants to merge 1 commit into
mainfrom
michaelshin/dispatch-sdk-client-upgrade

Conversation

@michaelshin

Copy link
Copy Markdown
Contributor

Change

Publishing a generated API client currently uploads to PyPI without notifying the SDK repository, so the SDK upgrade automation added in CentML/centml-python-client#164 never starts.

After a successful PyPI publish, dispatch platform-api-client-published to CentML/centml-python-client with the release version. Strip an optional leading v from the tag, report missing token configuration clearly, and grant checkout explicit read access to repository contents.

Setup

Configure SDK_UPDATE_TOKEN in this repository with Contents: read and write access to CentML/centml-python-client. The SDK repository also needs SDK_UPDATE_TOKEN with Contents: read and write and Pull requests: read and write so it can create upgrade PRs that trigger CI. Neither repository currently exposes this secret to its workflows.

This change applies to future releases. For the already-published 4.42.0, trigger the SDK's update_platform_api_client.yml workflow manually after configuring its token; publishing again is unnecessary.

Validation

  • Parsed the workflow YAML and checked that dispatch follows the PyPI publish step.
  • Checked Bash syntax and whitespace.
  • Ran the exact dispatch script against a mock GitHub CLI: verified plain and v-prefixed tags, the destination endpoint and JSON payload, missing-token failure, and API-error propagation.
  • No live dispatch or PyPI publication was performed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant