Repository navigation
[CI] Request SDK upgrade after publishing API client - #128
Open
michaelshin wants to merge 1 commit into
Open
michaelshin wants to merge 1 commit into
michaelshin wants to merge 1 commit into
Conversation
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.
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-publishedtoCentML/centml-python-clientwith the release version. Strip an optional leadingvfrom the tag, report missing token configuration clearly, and grant checkout explicit read access to repository contents.Setup
Configure
SDK_UPDATE_TOKENin this repository with Contents: read and write access toCentML/centml-python-client. The SDK repository also needsSDK_UPDATE_TOKENwith 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'supdate_platform_api_client.ymlworkflow manually after configuring its token; publishing again is unnecessary.Validation
v-prefixed tags, the destination endpoint and JSON payload, missing-token failure, and API-error propagation.