Skip to content

Commit c8b52a5

Browse files
authored
Pin misspell and standardize another renovate config (open-telemetry#2435)
1 parent 73cd560 commit c8b52a5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/renovate.json5

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
extends: [
44
'config:best-practices',
55
'helpers:pinGitHubActionDigestsToSemver',
6+
'customManagers:githubActionsVersions',
67
],
78
ignorePaths: [], // overwrite default ignore which includes **/test/**
89
// used to update docker image versions used in Java test files
@@ -252,8 +253,9 @@
252253
'**/build.gradle.kts',
253254
],
254255
matchStrings: [
255-
'"https://github.com/(?<depName>[^/]+/[^/]+)/zipball/(?<currentValue>.+?)"',
256+
'"(?<currentValue>.+?)" // renovate\\(github-releases\\): (?<depName>[^\\s]+)',
256257
],
258+
versioningTemplate: 'semver',
257259
},
258260
{
259261
customType: 'regex',

.github/workflows/reusable-misspell-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ jobs:
1313
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1414

1515
- name: Install misspell
16+
env:
17+
# renovate: datasource=github-releases depName=golangci/misspell
18+
MISSPELL_VERSION: v0.7.0
1619
run: |
17-
curl -sfL https://raw.githubusercontent.com/golangci/misspell/master/install-misspell.sh | sh -s -- -b bin
20+
curl -sfL https://raw.githubusercontent.com/golangci/misspell/${MISSPELL_VERSION}/install-misspell.sh \
21+
| sh -s -- -b bin ${MISSPELL_VERSION}
1822
1923
- name: Run misspell
2024
run: bin/misspell -error .

opamp-client/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import java.io.FileOutputStream
22
import java.io.InputStream
33
import java.net.URI
44

5+
val opampSpecVersion = "v0.14.0" // renovate(github-releases): open-telemetry/opamp-spec
6+
57
plugins {
68
id("otel.java-conventions")
79
id("otel.publish-conventions")
@@ -28,7 +30,7 @@ val opampProtos = tasks.register<DownloadAndExtractOpampProtos>("opampProtoDownl
2830
group = "opamp"
2931
outputProtosDir.set(project.layout.buildDirectory.dir("opamp/protos"))
3032
downloadedZipFile.set(project.layout.buildDirectory.file("intermediate/opampProtoDownload/release.zip"))
31-
zipUrl.set("https://github.com/open-telemetry/opamp-spec/zipball/v0.14.0")
33+
zipUrl.set("https://github.com/open-telemetry/opamp-spec/zipball/$opampSpecVersion")
3234
}
3335

3436
wire {

0 commit comments

Comments
 (0)