ci: Use renovate to update semantic conventions gem#2056
Draft
kaylareopelle wants to merge 2 commits intoopen-telemetry:mainfrom
Draft
ci: Use renovate to update semantic conventions gem#2056kaylareopelle wants to merge 2 commits intoopen-telemetry:mainfrom
kaylareopelle wants to merge 2 commits intoopen-telemetry:mainfrom
Conversation
We use renovate to check to see if a new version has been released. Then, we use a GHA workflow to run the rake task to make the update. The GH version of renovate doesn't have access to Docker, so we leverage GHA's access to run weaver.
Also, alphabetize the words
Contributor
thompson-tomo
left a comment
There was a problem hiding this comment.
@kaylareopelle I have proposed config so that it would raise multiple pr's if there is multiple new versions.
Comment on lines
+7
to
+18
| "regexManagers": [ | ||
| { | ||
| "fileMatch": ["^semantic_conventions/Rakefile$"], | ||
| "matchStrings": [ | ||
| "SPEC_VERSION = '(?<currentValue>.*?)'" | ||
| ], | ||
| "depNameTemplate": "open-telemetry/semantic-conventions", | ||
| "datasourceTemplate": "github-releases", | ||
| "versioningTemplate": "semver", | ||
| "extractVersionTemplate": "^v(?<version>.*)$" | ||
| } | ||
| ], |
Contributor
There was a problem hiding this comment.
Suggested change
| "regexManagers": [ | |
| { | |
| "fileMatch": ["^semantic_conventions/Rakefile$"], | |
| "matchStrings": [ | |
| "SPEC_VERSION = '(?<currentValue>.*?)'" | |
| ], | |
| "depNameTemplate": "open-telemetry/semantic-conventions", | |
| "datasourceTemplate": "github-releases", | |
| "versioningTemplate": "semver", | |
| "extractVersionTemplate": "^v(?<version>.*)$" | |
| } | |
| ], | |
| "customManagers": [ | |
| { | |
| "customType": "regex", | |
| "description": "Update Semantic Conventions version in Rake files", | |
| "managerFilePatterns": ["^semantic_conventions/Rakefile$"], | |
| "matchStrings": [ | |
| "SPEC_VERSION = '(?<currentValue>.*?)'" | |
| ], | |
| "depNameTemplate": "open-telemetry/semantic-conventions", | |
| "datasourceTemplate": "github-releases", | |
| "versioningTemplate": "semver", | |
| "extractVersionTemplate": "^v(?<version>.*)$" | |
| } | |
| ], |
| "matchUpdateTypes": ["minor", "major"], | ||
| "schedule": ["before 8am on Monday"] | ||
| }, | ||
| { |
Contributor
There was a problem hiding this comment.
Suggested change
| { | |
| { | |
| "separateMultipleMinor": true, | |
| "separateMinorPatch": true, | |
| "schedule": ["at any time"], |
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Set up Ruby | ||
| uses: ruby/setup-ruby@v1 |
Contributor
There was a problem hiding this comment.
Suggested change
| uses: ruby/setup-ruby@v1 | |
| uses: ruby/setup-ruby@dffb23f65a78bba8db45d387d5ea1bbd6be3ef18 # v1.293.0 |
| if: startsWith(github.head_ref, 'renovate/') | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 |
Contributor
There was a problem hiding this comment.
Suggested change
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
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.
This is a new action using Renovate to help us update the Semantic Conventions gem when new versions are released:
We should release versions 1.38 and 1.39 before we merge this PR. It will run on only the latest version (which at this time is 1.40)