Skip to content

Commit

Permalink
.github: extract ChangeLog entry for latest relase for release notes
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
Joachim Wiberg committed Jul 6, 2021
1 parent 0b513ba commit a690a74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
release_id: ${{ steps.create_release.outputs.id }}
steps:
- name: Extract ChangeLog entry ...
# Hack to extract latest entry for body_path below
run: |
awk '/-----*/{if (x == 1) exit; x=1;next}x' ChangeLog.md \
|head -n -1 > release.md
- name: Create release ...
id: create_release
uses: actions/create-release@v1
Expand All @@ -22,6 +27,7 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Nemesis ${{ github.ref }}
body_path: release.md
draft: false
prerelease: false
tarball:
Expand Down

0 comments on commit a690a74

Please sign in to comment.