Skip to content

Commit 6cb00d3

Browse files
authored
Fix sdk version in release notes (#7880)
1 parent 98653ef commit 6cb00d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,12 @@ jobs:
110110
env:
111111
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112
run: |
113+
sdk_version=$(grep -Po "val otelSdkVersion = \"\K[0-9]+.[0-9]+.[0-9]+" dependencyManagement/build.gradle.kts)
114+
113115
# conditional blocks not indented because of the heredoc
114116
if [[ $VERSION == *.0 ]]; then
115117
cat > /tmp/release-notes.txt << EOF
116-
This release targets the OpenTelemetry SDK $VERSION.
118+
This release targets the OpenTelemetry SDK $sdk_version.
117119
118120
Note that many artifacts have the \`-alpha\` suffix attached to their version number, reflecting that they are still alpha quality and will continue to have breaking changes. Please see the [VERSIONING.md](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/VERSIONING.md#opentelemetry-java-instrumentation-versioning) for more details.
119121

0 commit comments

Comments
 (0)