append package changelog to the release notes

This commit is contained in:
Wolfgang
2024-07-06 08:46:31 +00:00
parent 6795922c7c
commit 3030389cf4
2 changed files with 4 additions and 2 deletions

View File

@@ -4,4 +4,4 @@ The proxmox-backup*,promox-mini-journalreader and pve-xtermjs packages are cross
Use at your own risk.
**Changelog**
**Official Changelog**

View File

@@ -46,6 +46,8 @@ jobs:
else
docker buildx build -o packages --build-arg buildoptions="cross github" --build-arg baseimage=${baseimage} --platform linux/amd64 -f .github/Dockerfile.crosscompile-arm64 .
fi
sudo apt -y install apt-listchanges
apt-listchanges --latest=1 -f text packages/proxmox-backup-server_*.deb | sed -e '/^\(apt-listchanges.*\|[-]\+\)$/d' >> .github/PREBUILD.md
echo "DEB_VERSION=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: //p')" >> $GITHUB_ENV
echo "DEB_VERSION_UPSTREAM=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: \([0-9.]\+\)-[0-9]/\1/p')" >> $GITHUB_ENV
- name: Test packages
@@ -57,7 +59,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "packages/*.deb"
bodyFile: "PREBUILD.md"
bodyFile: ".github/PREBUILD.md"
tag: ${{ env.DEB_VERSION }}
name: Version ${{ env.DEB_VERSION }} (${{ env.DEB_DIST }})
draft: true