Repository navigation
ci: automate updates to new MAVSDK releases - #835
Merged
Merged
Conversation
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.
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.
Automates updating to new MAVSDK (C++) releases.
mavsdk-update.yml(daily, or manual with an optional version):MAVSDK_SERVER_VERSIONprototo the commit MAVSDK pins at that tagother/tools/run_protoc.shrelease-tag.yml: whenMAVSDK_SERVER_VERSIONchanges onmain, pushes the matching tag (v4.2.1->4.2.1) if it doesn't exist yet, which triggers the PyPI upload inmain.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_IDvariable,RELEASE_BOT_PRIVATE_KEYsecret), since PRs and tags created withGITHUB_TOKENdon't trigger workflows.