feat(workflows): Add go-sdk auto bump workflow#351
Open
craciunoiuc wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to bump unikraft.com/cloud/sdk in go.mod/go.sum and open a PR against the staging branch, aiming to shorten the time-to-update compared to waiting for Dependabot.
Changes:
- Introduces a new
sync-sdkworkflow runnable viaworkflow_dispatchwith a selectable SDK channel (prod-stable/prod-staging). - Updates the Go module dependency via
go getand conditionally opens a PR (and closes older related bump PRs).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Cezar Craciunoiu <[email protected]>
aba12b2 to
c0202eb
Compare
jedevc
reviewed
Jun 22, 2026
| shell: bash | ||
| run: | | ||
| echo "Bumping Go SDK to latest from ${{ inputs.channel }}..." | ||
| go get unikraft.com/cloud/sdk@${{ inputs.channel }} |
Member
There was a problem hiding this comment.
I think we probably want to make sure that this is set using a commit hash. I know that go get on a branch can sometimes annoyingly cache.
jedevc
reviewed
Jun 22, 2026
| git diff --stat go.mod go.sum || true | ||
| fi | ||
|
|
||
| - name: Close existing related unmerged bump PRs |
Member
There was a problem hiding this comment.
No need to do this. peter-evans/create-pull-request will update an existing branch if it's already there 🎉
nderjung
reviewed
Jul 6, 2026
| @@ -0,0 +1,117 @@ | |||
| name: sync sdk | |||
Member
There was a problem hiding this comment.
Suggested change
| name: sync sdk | |
| name: sync-sdk |
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.
If we add this, we will get PRs for sdk bumps instantly, instead of waiting 1 week for dependabot to kick in.
Also, dependabot doesn't work with branch bumps I believe.
We need to merge this before we merge the one below to be clean:
Depends on: unikraft-cloud/go-sdk#196