test set changelog using generator
This commit is contained in:
@@ -19,6 +19,8 @@ on:
|
|||||||
- 'minor'
|
- 'minor'
|
||||||
- 'patch'
|
- 'patch'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -62,6 +64,25 @@ jobs:
|
|||||||
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
|
||||||
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
|
||||||
echo "EOF" >> $GITHUB_ENV
|
echo "EOF" >> $GITHUB_ENV
|
||||||
|
- name: Generate Changelog
|
||||||
|
uses: spring-io/github-changelog-generator@<version-or-sha>
|
||||||
|
with:
|
||||||
|
milestone: '1.0.0'
|
||||||
|
changelog:
|
||||||
|
issues:
|
||||||
|
exclude:
|
||||||
|
labels: ["wontfix", "question", "duplicate", "invalid"]
|
||||||
|
sections:
|
||||||
|
- title: "Enhancements"
|
||||||
|
labels: ["Kind/Enhancement", "Kind/Feature"]
|
||||||
|
- title: "Bugs"
|
||||||
|
labels: ["Kind/Bug"]
|
||||||
|
- name: Set changelog to environment
|
||||||
|
id: set_changelog
|
||||||
|
run: |
|
||||||
|
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
||||||
|
echo "$(cat changelog.md)" >> $GITHUB_ENV
|
||||||
|
echo "EOF" >> $GITHUB_ENV
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
if: ${{ github.event.inputs.github_release == 'true' }}
|
if: ${{ github.event.inputs.github_release == 'true' }}
|
||||||
@@ -69,7 +90,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
release_name: Release ${{ env.VERSION }}
|
release_name: Release ${{ env.VERSION }}
|
||||||
body: ${{ env.RELEASE_NOTES }}
|
body_path: changelog.md
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
make_latest: true
|
make_latest: true
|
||||||
|
|||||||
Reference in New Issue
Block a user