Skip to content

ci: automate updates to new MAVSDK releases - #835

Merged
julianoes merged 2 commits into
mainfrom
pr-release-bot
Nov 24, 2026
Merged

julianoes merged 2 commits into
mainfrom
pr-release-bot

Conversation

@julianoes

Copy link
Copy Markdown
Collaborator

Automates updating to new MAVSDK (C++) releases.

mavsdk-update.yml (daily, or manual with an optional version):

  • compares the latest MAVSDK release (no prereleases) with MAVSDK_SERVER_VERSION
  • moves proto to the commit MAVSDK pins at that tag
  • regenerates with other/tools/run_protoc.sh
  • opens a PR "Go to version vX.Y.Z" with auto-merge enabled, so it merges after approval and green CI

release-tag.yml: when MAVSDK_SERVER_VERSION changes on main, pushes the matching tag (v4.2.1 -> 4.2.1) if it doesn't exist yet, which triggers the PyPI upload in main.yml. Manual bumps still work, the job does nothing if the tag already exists.

Both run as the "MAVSDK-Python Release Bot" GitHub App (RELEASE_BOT_APP_ID variable, RELEASE_BOT_PRIVATE_KEY secret), since PRs and tags created with GITHUB_TOKEN don't trigger workflows.

Add a daily workflow that checks for a new MAVSDK release, bumps
MAVSDK_SERVER_VERSION, moves the proto submodule to the commit pinned by
that release, regenerates the bindings and opens a PR with auto-merge.

Add a workflow that tags the release once MAVSDK_SERVER_VERSION changes
on main, which triggers the PyPI upload.

Both run as the "MAVSDK-Python Release Bot" GitHub App because events
created with GITHUB_TOKEN don't trigger other workflows.
@julianoes
julianoes merged commit 4f08c20 into main Nov 24, 2026
9 checks passed
@julianoes
julianoes deleted the pr-release-bot branch November 24, 2026 00:55
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