Harmonize GitHub Actions structure

See https://github.com/spring-projects/spring-boot/issues/42512
This commit is contained in:
Stéphane Nicoll
2024-10-04 16:05:50 +02:00
parent c44e43d791
commit 6b975592bf
15 changed files with 197 additions and 134 deletions

View File

@@ -1,11 +1,11 @@
name: Create GitHub Release
description: Create the release on GitHub with a changelog
description: 'Create the release on GitHub with a changelog'
inputs:
milestone:
description: Name of the GitHub milestone for which a release will be created
description: 'Name of the GitHub milestone for which a release will be created'
required: true
token:
description: Token to use for authentication with GitHub
description: 'Token to use for authentication with GitHub'
required: true
runs:
using: composite
@@ -13,11 +13,11 @@ runs:
- 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 }}
config-file: .github/actions/create-github-release/changelog-generator.yml
- name: Create GitHub Release
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash
run: gh release create ${{ format('v{0}', inputs.milestone) }} --notes-file changelog.md