From 3030389cf49b069795347ad50713be8e88fa9316 Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Sat, 6 Jul 2024 08:46:31 +0000 Subject: [PATCH] append package changelog to the release notes --- PREBUILD.md => .github/PREBUILD.md | 2 +- .github/workflows/release.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename PREBUILD.md => .github/PREBUILD.md (95%) diff --git a/PREBUILD.md b/.github/PREBUILD.md similarity index 95% rename from PREBUILD.md rename to .github/PREBUILD.md index 5a53f66..97945bb 100644 --- a/PREBUILD.md +++ b/.github/PREBUILD.md @@ -4,4 +4,4 @@ The proxmox-backup*,promox-mini-journalreader and pve-xtermjs packages are cross Use at your own risk. -**Changelog** +**Official Changelog** diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1db96d9..df1ff5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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