[PM-34456] Innovation Sprint: Enable generating automated release notes (#7362)

* Enable generating automated release notes

* Update release.yml template

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2026-04-06 20:08:24 +02:00
committed by GitHub
parent ecac34bc18
commit 2c9be6fa4c
2 changed files with 49 additions and 2 deletions

34
.github/release.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
changelog:
exclude:
labels:
- ignore-for-release
categories:
- title: "💙 Community Highlight"
labels:
- community-pr
- title: ":shipit: Feature Development"
labels:
- t:feature
- t:feature-app
- t:feature-tool
- t:new-feature
- t:enhancement
- title: "❗ Breaking Changes"
labels:
- t:breaking-change
- title: "🐛 Bug fixes"
labels:
- t:bugfix
- title: "⚙️ Maintenance"
labels:
- t:tech-debt
- t:ci
- t:docs
- t:misc
- title: "📦 Dependency Updates"
labels:
- major-updates
- t:deps
- title: "🎨 Other"
labels:
- "*"

View File

@@ -27,6 +27,7 @@ jobs:
outputs:
release_version: ${{ steps.version.outputs.version }}
branch-name: ${{ steps.branch.outputs.branch-name }}
last_release_tag: ${{ steps.get_release_info.outputs.last_release_tag }}
steps:
- name: Branch check
if: ${{ inputs.release_type != 'Dry Run' }}
@@ -58,6 +59,13 @@ jobs:
BRANCH_NAME=$(basename "${GITHUB_REF}")
echo "branch-name=$BRANCH_NAME" >> "$GITHUB_OUTPUT"
- name: Get version info from run logs and set release tag name
id: get_release_info
run: |
last_release_tag=$(git tag -l --sort=-authordate | head -n 1)
echo "🔖 Last release tag: $last_release_tag"
echo "last_release_tag=$last_release_tag" >> "$GITHUB_OUTPUT"
release:
name: Create GitHub release
runs-on: ubuntu-22.04
@@ -90,13 +98,18 @@ jobs:
- name: Create release
if: ${{ inputs.release_type != 'Dry Run' }}
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
env:
RELEASE_VERSION: ${{ needs.setup.outputs.release_version }}
LAST_RELEASE_TAG: ${{ needs.setup.outputs.last_release_tag }}
with:
artifacts: "docker-stub-US.zip,
docker-stub-EU.zip,
swagger.json"
commit: ${{ github.sha }}
tag: "v${{ needs.setup.outputs.release_version }}"
name: "Version ${{ needs.setup.outputs.release_version }}"
tag: "v${{ env.RELEASE_VERSION }}"
name: "Version ${{ env.RELEASE_VERSION }}"
body: "<insert release notes here>"
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
generateReleaseNotesPreviousTag: ${{ env.LAST_RELEASE_TAG }}
draft: true