From c1bdb62822907ba8b0f7e5c9daa107dd66652245 Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Tue, 15 Jun 2021 17:07:06 -0400 Subject: [PATCH] Better release changelog output --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9f5bcc3..8610502 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,8 +35,8 @@ jobs: version=$(git describe --tags --abbrev=0 | sed 's/v//') # build a changelog with just logs from this release - cat CHANGELOG.md | sed -n '/^## \['"$version"'\]/,/^## /p' > this_version_changelog.md | head -n -2 - echo "" >> this_version_changelog.md + echo "## Changelog" >> this_version_changelog.md + cat CHANGELOG.md | sed -n '/^## \['"$version"'\]/,/^## /p' > this_version_changelog.md | head -n -1 | tail -n +3 echo "[Full Changelog](https://github.com/calebstewart/pwncat/blob/v$version/CHANGELOG.md)" >> this_version_changelog.md - name: Publish Plugins uses: softprops/action-gh-release@v1