Files
spring-boot/.github/actions/create-github-release/action.yml
Stéphane Nicoll 20b3e6120d Apply conventions to existing Actions and Workflows
This commit applies the conventions that we documented on our wiki, see
https://github.com/spring-projects/spring-boot/wiki/GitHub-Actions.

In no particular order this:

* Use consistent single quotes for descriptions
* Order elements in a predictable order. In particular, inputs, outputs,
and environment variables are ordered alphabetically

Closes gh-42512
2024-10-04 15:18:18 +02:00

24 lines
841 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:
config-file: .github/actions/create-github-release/changelog-generator.yml
milestone: ${{ inputs.milestone }}
token: ${{ inputs.token }}
- name: Create GitHub Release
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.token }}
run: gh release create ${{ format('v{0}', inputs.milestone) }} --notes-file changelog.md