mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
24 lines
835 B
YAML
24 lines
835 B
YAML
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@185319ad7eaa75b0e8e72e4b6db19c8b2cb8c4c1 #v0.0.11
|
|
with:
|
|
milestone: ${{ inputs.milestone }}
|
|
token: ${{ inputs.token }}
|
|
config-file: .github/actions/create-github-release/changelog-generator.yml
|
|
- name: Create GitHub Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ inputs.token }}
|
|
shell: bash
|
|
run: gh release create ${{ format('v{0}', inputs.milestone) }} --notes-file changelog.md
|