ci: add workflow to auto-bump viam-cpp-sdk#221
Open
Ethan (stuqdog) wants to merge 1 commit into
Open
Conversation
Adds .github/workflows/bump-viam-cpp-sdk.yml, a daily scheduled workflow that opens a PR bumping viam-cpp-sdk whenever a newer SDK release is published. The version is pinned via conan (which Dependabot can't track) and duplicated as a git tag across Dockerfile, bin/setup.sh and CMakeLists.txt, so the workflow updates every location in one PR and fails if any old reference is left behind. Co-Authored-By: Claude Fable 5 <noreply@anthropic.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.
Adds
.github/workflows/bump-viam-cpp-sdk.yml— a daily scheduled workflow (plusworkflow_dispatch) that opens/updates a PR bumpingviam-cpp-sdkwhenever a newer release is published on viamrobotics/viam-cpp-sdk.Why a custom workflow rather than Dependabot: the SDK is pinned via conan (no Dependabot ecosystem) and the version is duplicated as a git tag across several build files, so it needs multi-file syncing.
The workflow updates every location in one PR and fails loudly if any old reference is left behind (rather than opening a half-updated PR):
releases/vX.Y.Zgit tags inDockerfile,bin/setup.sh,CMakeLists.txt(auto-discovered viagit grep)viam-cpp-sdk/[>=X.Y.Z]conan range inconanfile.pyFIND_PACKAGE_ARGS X.Y.Z/find_package(viam-cpp-sdk X.Y ...))Uses
perl -i(consistent across runners) and only bumps forward. Opens the PR with the orgGIT_ACCESS_TOKENbot secret (same oneviam-python-sdk'supdate_protosuses) so the bump PR triggers CI.Opened as a draft for review.
🤖 Generated with Claude Code