Skip to content

Commit 3ad5086

Browse files
committed
Update release workflow
1 parent 1ef4ecb commit 3ad5086

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -134,23 +134,6 @@ jobs:
134134
env:
135135
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136136
run: |
137-
sdk_version=$(grep -Po "val otelSdkVersion = \"\K[0-9]+.[0-9]+.[0-9]+" dependencyManagement/build.gradle.kts)
138-
139-
# conditional blocks not indented because of the heredoc
140-
if [[ $VERSION == *.0 ]]; then
141-
cat > /tmp/release-notes.txt << EOF
142-
This release targets the OpenTelemetry SDK $sdk_version.
143-
144-
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.
145-
146-
EOF
147-
else
148-
cat > /tmp/release-notes.txt << EOF
149-
This is a patch release on the previous $PRIOR_VERSION release, fixing the issue(s) below.
150-
151-
EOF
152-
fi
153-
154137
# CHANGELOG_SECTION.md is also used at the end of the release workflow
155138
# for copying the change log updates to main
156139
sed -n "0,/^## Version $VERSION /d;/^## Version /q;p" CHANGELOG.md \
@@ -159,7 +142,7 @@ jobs:
159142
# the complex perl regex is needed because markdown docs render newlines as soft wraps
160143
# while release notes render them as line breaks
161144
perl -0pe 's/(?<!\n)\n *(?!\n)(?![-*] )(?![1-9]+\. )/ /g' /tmp/CHANGELOG_SECTION.md \
162-
>> /tmp/release-notes.txt
145+
> /tmp/release-notes.txt
163146
164147
# conditional block not indented because of the heredoc
165148
if [[ $VERSION == *.0 ]]; then

0 commit comments

Comments
 (0)