Add CHANGELOG section to preview release

Whenever we create a preview release, we extract the `unreleased`
section of the CHANGELOG and make it the body of the Github release.
This commit is contained in:
Thomas Eizinger 2021-03-24 11:30:27 +11:00
parent b25d21282d
commit 497a531102
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -21,6 +21,12 @@ jobs:
- name: Give GitHub some time to process the deletion, otherwise our release shows up as draft. Sigh. - name: Give GitHub some time to process the deletion, otherwise our release shows up as draft. Sigh.
run: sleep 10 run: sleep 10
- name: Extract changelog section for release
id: changelog
uses: coditory/changelog-parser@v1
with:
version: unreleased
- name: Create 'preview' release - name: Create 'preview' release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
@ -30,4 +36,4 @@ jobs:
release_name: preview release_name: preview
draft: false draft: false
prerelease: true prerelease: true
body: Preview release of `asb` and `swap` body: ${{ steps.changelog.outputs.description }}