Generate debian changelog from metadata

This commit is contained in:
Patrick Nicolas
2025-04-13 18:14:37 +02:00
parent 06ba190637
commit 1c57dae421
3 changed files with 87 additions and 73 deletions
+9 -20
View File
@@ -471,26 +471,15 @@ jobs:
working-directory: wivrn/monado-src
run: ../patches/apply.sh ../patches/monado/*
- name: Edit changelog (nightly)
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
working-directory: wivrn/debian
run: |
mv changelog changelog.orig
echo "wivrn ("$( (git describe --tags || echo 0) | sed s/^v//)") "${{ matrix.distro }}"; urgency=medium" > changelog
echo "" >> changelog
echo " * Nightly build" >> changelog
echo "" >> changelog
echo " -- github-actions <41898282+github-actions@users.noreply.github.com> "$(date -R) >> changelog
echo "" >> changelog
cat changelog.orig | sed s/unstable/${{ matrix.distro }}/ >> changelog
cat changelog
- name: Edit changelog (release)
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
working-directory: wivrn/debian
run: |
sed -i s/unstable/${{ matrix.distro }}/ changelog
cat changelog
- name: Edit changelog
working-directory: wivrn
run: >
tools/gen_debian_changelog.py
--out debian/changelog
${{ (startsWith(github.ref, 'refs/tags/') && '' ) || '--nightly' }}
--author "github-actions <41898282+github-actions@users.noreply.github.com>"
--distribution "${{ matrix.distro }}";
cat debian/changelog
- name: Build package
working-directory: wivrn