Skip to content

ci: add workflow to auto-bump viam-cpp-sdk#221

Open
Ethan (stuqdog) wants to merge 1 commit into
viam-modules:mainfrom
stuqdog:bump-viam-cpp-sdk-workflow
Open

ci: add workflow to auto-bump viam-cpp-sdk#221
Ethan (stuqdog) wants to merge 1 commit into
viam-modules:mainfrom
stuqdog:bump-viam-cpp-sdk-workflow

Conversation

@stuqdog

Copy link
Copy Markdown

Adds .github/workflows/bump-viam-cpp-sdk.yml — a daily scheduled workflow (plus workflow_dispatch) that opens/updates a PR bumping viam-cpp-sdk whenever 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.Z git tags in Dockerfile, bin/setup.sh, CMakeLists.txt (auto-discovered via git grep)
  • the viam-cpp-sdk/[>=X.Y.Z] conan range in conanfile.py
  • the CMake find version (FIND_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 org GIT_ACCESS_TOKEN bot secret (same one viam-python-sdk's update_protos uses) so the bump PR triggers CI.

Opened as a draft for review.

🤖 Generated with Claude Code

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>
@stuqdog Ethan (stuqdog) marked this pull request as ready for review July 2, 2026 18:38
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