Skip to content

Commit 23536e5

Browse files
authored
CORE-599: Generate release notes on release from PRs (#4255)
#### What this PR does / why we need it: From #4232 and odigos-io/odigos-enterprise#2245, this updates the release job to generate the release notes and update the github release with those notes. Currently uses a fork of the k8s release-notes tool to include the change from kubernetes/release#4272 #### Changelog entry: Does this PR introduce a user-facing bug fix, feature, dependency update, or breaking change?? <!-- This section will go in the release notes for this version. Is this something users should be able to find easily? If no, just write "NONE" in the release-note block below. If yes, please add a release note in the block below describing this in 1-2 sentences for our changelog. --> ```release-note NONE ```
1 parent 63f2145 commit 23536e5

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
tag: ${{ env.TAG }}
6363

6464
build-cli:
65-
needs: package-helm
65+
needs: [package-helm]
6666
runs-on: depot-ubuntu-24.04-8
6767
steps:
6868
- name: Determine Tag Value
@@ -89,6 +89,11 @@ jobs:
8989
echo "This is a stable release: $TAG"
9090
fi
9191
92+
# Release branch for tag: v1.17.6 -> releases/v1.17.0
93+
VERSION="${TAG#v}"
94+
MAJOR_MINOR=$(echo "$VERSION" | cut -d. -f1,2)
95+
echo "RELEASE_BRANCH=releases/v${MAJOR_MINOR}.0" >> $GITHUB_ENV
96+
9297
- uses: actions/checkout@v5
9398
with:
9499
fetch-depth: 0
@@ -214,6 +219,22 @@ jobs:
214219
SKIP_HOMEBREW_UPDATE: ${{ env.SKIP_HOMEBREW_UPDATE }}
215220
GORELEASER_CURRENT_TAG: ${{ env.TAG }}
216221

222+
- name: Generate and update release notes
223+
uses: odigos-io/ci-core/.github/actions/generate-release-notes@main
224+
continue-on-error: true
225+
with:
226+
tag: ${{ env.TAG }}
227+
release-branch: ${{ env.RELEASE_BRANCH }}
228+
github-token: ${{ secrets.GITHUB_TOKEN }}
229+
230+
- name: Notify Slack (release notes)
231+
uses: odigos-io/ci-core/.github/actions/slack-release-notification@main
232+
with:
233+
webhook-url: ${{ secrets.ODIGOS_RELEASE_STATUS_WEBHOOK_URL }}
234+
success-description: "Release notes updated successfully"
235+
failure-description: "ERROR: Failed to update release notes"
236+
tag: ${{ env.TAG }}
237+
217238
- uses: ko-build/setup-ko@v0.9
218239

219240
- name: publish cli image to docker registries
@@ -257,7 +278,7 @@ jobs:
257278
tag: ${{ env.TAG }}
258279

259280
publish-helm:
260-
needs: build-cli
281+
needs: [build-cli]
261282
runs-on: ubuntu-latest
262283
steps:
263284
- name: Determine Tag Value

0 commit comments

Comments
 (0)