-
Notifications
You must be signed in to change notification settings - Fork 9
ci: add workflow to auto-update cmd/openapi dependency #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
Contributor
📊 Test Coverage ReportCurrent Coverage: Coverage Change: ✅ No change Coverage by Package
📋 Detailed Coverage by Function (click to expand)
Generated by GitHub Actions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ci/cd
Continuous integration/deployment changes
dependencies
Dependency updates or changes
tooling
Development tools and utilities
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.
Description
Adds a GitHub Action workflow that automatically updates the
cmd/openapi/go.moddependency to reference the latest commit frommainwhenever changes are merged.Problem
The
cmd/openapimodule depends on the rootgithub.com/speakeasy-api/openapimodule. When changes are merged tomain,cmd/openapineeds to be manually updated to use the latest version. This creates friction and can lead to the CLI falling out of sync with the latest library changes.Solution
This PR introduces a new workflow (
.github/workflows/update-cmd-dependency.yaml) that:main(excluding changes tocmd/openapi/**to prevent infinite loops)go get github.com/speakeasy-api/openapi@mainwhich automatically resolves to the latest commit's pseudo-versiongo.modorgo.sumdependencies,automated)Benefits
cmd/openapistays up-to-date with the latest library changes@mainbranch resolutionImplementation Details
go get github.com/speakeasy-api/openapi@mainwhich automatically creates the correct pseudo-versioncmd/openapiitself changes)peter-evans/create-pull-requestaction for reliable PR creationTesting