Skip to content

Commit 65ab38b

Browse files
traskjack-berg
andauthored
Fix release notes generation (open-telemetry#4622)
* Fix release notes generation * Update .github/scripts/generate-release-contributors.sh Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com> Co-authored-by: jack-berg <34418638+jack-berg@users.noreply.github.com>
1 parent 7a2a5b3 commit 65ab38b

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/scripts/generate-release-contributors.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
# this should be run on the release branch
77

8+
# NOTE if you need to run this script locally, you will need to first:
9+
# git fetch upstream main
10+
# git push origin upstream/main:main
11+
# export GITHUB_REPOSITORY=open-telemetry/opentelemetry-java
12+
813
from_version=$1
914

1015
# get the date of the first commit that was not in the from_version
@@ -81,4 +86,5 @@ echo $contributors1 $contributors2 \
8186
| grep -v github-actions \
8287
| grep -v dependabot \
8388
| grep -v codecov \
89+
| grep -v opentelemetrybot \
8490
| sed 's/^/@/'

.github/workflows/release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
fi
1414
1515
- uses: actions/checkout@v3
16-
with:
17-
# tags are needed for the generate-release-contributors.sh script
18-
fetch-depth: 0
1916

2017
- uses: actions/setup-java@v3
2118
with:
@@ -74,18 +71,16 @@ jobs:
7471
7572
# back to the release branch
7673
- uses: actions/checkout@v3
74+
with:
75+
# tags are needed for the generate-release-contributors.sh script
76+
fetch-depth: 0
7777

7878
- name: Generate release notes
7979
env:
8080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8181
run: |
8282
# conditional blocks not indented because of the heredoc
83-
if [[ $VERSION == *.0 ]]; then
84-
cat > /tmp/release-notes.txt << EOF
85-
This release targets the OpenTelemetry SDK $VERSION.
86-
87-
EOF
88-
else
83+
if [[ $VERSION != *.0 ]]; then
8984
cat > /tmp/release-notes.txt << EOF
9085
This is a patch release on the previous $PRIOR_VERSION release, fixing the issue(s) below.
9186

0 commit comments

Comments
 (0)