Fix release script

This commit is contained in:
Moritz Halbritter
2024-10-24 09:57:37 +02:00
parent 83a3212e98
commit 9858b4b367
4 changed files with 32 additions and 5 deletions

View File

@@ -7,13 +7,16 @@ inputs:
token:
description: 'Token to use for authentication with GitHub'
required: true
commercial:
description: 'Whether to generate the changelog for the commercial release'
required: true
runs:
using: composite
steps:
- name: Generate Changelog
uses: spring-io/github-changelog-generator@185319ad7eaa75b0e8e72e4b6db19c8b2cb8c4c1 #v0.0.11
with:
config-file: .github/actions/create-github-release/changelog-generator.yml
config-file: ${{ inputs.commercial && '.github/actions/create-github-release/changelog-generator-commercial.yml' || '.github/actions/create-github-release/changelog-generator-oss.yml' }}
milestone: ${{ inputs.milestone }}
token: ${{ inputs.token }}
- name: Create GitHub Release

View File

@@ -15,7 +15,7 @@ changelog:
labels:
- "type: dependency-upgrade"
issues:
generate_links: ${{ !vars.COMMERCIAL }}
generate_links: false
ports:
- label: "status: forward-port"
bodyExpression: 'Forward port of issue #(\d+).*'

View File

@@ -0,0 +1,23 @@
changelog:
sections:
- title: ":star: New Features"
labels:
- "type: enhancement"
- title: ":lady_beetle: Bug Fixes"
labels:
- "type: bug"
- "type: regression"
- title: ":notebook_with_decorative_cover: Documentation"
labels:
- "type: documentation"
- title: ":hammer: Dependency Upgrades"
sort: "title"
labels:
- "type: dependency-upgrade"
issues:
generate_links: true
ports:
- label: "status: forward-port"
bodyExpression: 'Forward port of issue #(\d+).*'
- label: "status: back-port"
bodyExpression: 'Back port of issue #(\d+).*'