Add workflow to release from GitHub Actions
Co-Authored-By: Moritz Halbritter <moritz.halbritter@broadcom.com> Closes gh-40407
This commit is contained in:
23
.github/actions/create-github-release/action.yml
vendored
Normal file
23
.github/actions/create-github-release/action.yml
vendored
Normal 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
|
||||
23
.github/actions/create-github-release/changelog-generator.yml
vendored
Normal file
23
.github/actions/create-github-release/changelog-generator.yml
vendored
Normal 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+).*'
|
||||
Reference in New Issue
Block a user