extract changelog entry when creating a release

This commit is contained in:
Athou
2023-05-02 12:05:20 +02:00
parent 91938cc3b9
commit cfc07764b4
2 changed files with 22 additions and 29 deletions

View File

@@ -69,12 +69,19 @@ jobs:
tags: athou/commafeed:master
# Create GitHub release after Docker image has been published
- name: Extract Changelog Entry
uses: mindsers/changelog-reader-action@v2
if: ${{ matrix.java == '8' && github.ref_type == 'tag' }}
id: changelog_reader
with:
version: ${{ github.ref_name }}
- name: Create GitHub release
uses: softprops/action-gh-release@v1
if: ${{ matrix.java == '8' && github.ref_type == 'tag' }}
with:
name: CommaFeed ${{ github.ref_name }}
body: See changelog at https://github.com/Athou/commafeed/blob/master/CHANGELOG.md
body: ${{ steps.changelog_reader.outputs.changes }}
draft: false
prerelease: false
files: |