Add workflow to release from GitHub Actions

Co-Authored-By: Moritz Halbritter <moritz.halbritter@broadcom.com>

Closes gh-40407
This commit is contained in:
Andy Wilkinson
2024-04-15 18:02:56 +01:00
parent bc5777d0cc
commit e75c9312e0
12 changed files with 353 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
name: Create GitHub Release
description: Create the release on GitHub with a changelog
inputs:
milestone:
description: Name of the GitHub milestone for which a release will be created
required: true
token:
description: Token to use for authentication with GitHub
required: true
runs:
using: composite
steps:
- name: Generate Changelog
uses: spring-io/github-changelog-generator@052892c62af51f8af87a9da6de55e70864b7df12
with:
milestone: ${{ inputs.milestone }}
token: ${{ inputs.token }}
config-file: ${{ github.action_path }}/changelog-generator.yml
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash
run: gh release create ${{ github.ref_name }} --notes-file changelog.md

View File

@@ -0,0 +1,23 @@
changelog:
repository: spring-projects/spring-boot
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:
ports:
- label: "status: forward-port"
bodyExpression: 'Forward port of issue #(\d+).*'
- label: "status: back-port"
bodyExpression: 'Back port of issue #(\d+).*'