diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c00506c..0d2e1cf7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@master + - name: Extract Release Notes + run: | + sed "/^## \[${GITHUB_REF#refs/tags/v}/, /^## \[/!d" CHANGELOG.md | tail -n +2 | head -n -2 > release-notes.md - name: Create Release id: create_release uses: actions/create-release@latest @@ -20,5 +23,6 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} + body_path: release-notes.md draft: false - prerelease: false \ No newline at end of file + prerelease: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 386962d2..3e10dcc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.1.5] - 2021-08-17 ### Added - support for a custom signature on the pull request comment. - example on readme on how to use artifacts to compare coverage between base @@ -15,6 +16,7 @@ branch and current commit. ### Changed - when `base-file` is not found an non-blocking error will be created on the workflow for user diagnosis, instead of just skipping it. +- release workflow now uses notes from `CHANLOG.md` on release summary. ## [0.1.4] - 2021-08-16 ### Changed