Skip to content

Commit 06545f7

Browse files
authored
Fix incorrect SDK version included in release notes (#1426)
1 parent 0f728df commit 06545f7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,13 @@ jobs:
132132
env:
133133
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134134
run: |
135+
instrumentation_version=$(grep -Po "val otelInstrumentationVersion = \"\K[0-9]+.[0-9]+.[0-9]+" dependencyManagement/build.gradle.kts)
136+
135137
# conditional blocks not indented because of the heredoc
136138
if [[ $VERSION == *.0 ]]; then
137139
cat > /tmp/release-notes.txt << EOF
138-
This release targets the OpenTelemetry SDK $VERSION.
140+
This release targets the OpenTelemetry Java Instrumentation
141+
[$instrumentation_version](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/tag/v$instrumentation_version).
139142
140143
EOF
141144
else

dependencyManagement/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ data class DependencySet(val group: String, val version: String, val modules: Li
77
val dependencyVersions = hashMapOf<String, String>()
88
rootProject.extra["versions"] = dependencyVersions
99

10+
val otelInstrumentationVersion = "2.7.0-alpha"
11+
1012
val DEPENDENCY_BOMS = listOf(
1113
"com.fasterxml.jackson:jackson-bom:2.17.2",
1214
"com.google.guava:guava-bom:33.3.0-jre",
1315
"com.linecorp.armeria:armeria-bom:1.30.0",
1416
"org.junit:junit-bom:5.11.0",
1517
"io.grpc:grpc-bom:1.66.0",
16-
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.7.0-alpha",
18+
"io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${otelInstrumentationVersion}",
1719
"org.testcontainers:testcontainers-bom:1.20.1"
1820
)
1921

0 commit comments

Comments
 (0)