Better release changelog output

This commit is contained in:
Caleb Stewart 2021-06-15 17:07:06 -04:00
parent ea62c3d45e
commit c1bdb62822
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ jobs:
version=$(git describe --tags --abbrev=0 | sed 's/v//') version=$(git describe --tags --abbrev=0 | sed 's/v//')
# build a changelog with just logs from this release # build a changelog with just logs from this release
cat CHANGELOG.md | sed -n '/^## \['"$version"'\]/,/^## /p' > this_version_changelog.md | head -n -2 echo "## Changelog" >> this_version_changelog.md
echo "" >> 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 echo "[Full Changelog](https://github.com/calebstewart/pwncat/blob/v$version/CHANGELOG.md)" >> this_version_changelog.md
- name: Publish Plugins - name: Publish Plugins
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1