ci: set dev version number in github action.

This commit is contained in:
Alexandre Pujol 2023-01-28 19:21:18 +00:00
parent 7e3badfb3f
commit 37ce3971c8
Failed to generate hash of commit

View file

@ -19,7 +19,10 @@ jobs:
sudo rm /etc/apparmor.d/usr.lib.snapd.snap-confine.real sudo rm /etc/apparmor.d/usr.lib.snapd.snap-confine.real
- name: Build the apparmor.d package - name: Build the apparmor.d package
run: dpkg-buildpackage -b -d --no-sign run: |
VERSION="0.$(git rev-list --count HEAD)-1"
dch --newversion="$VERSION" --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
dpkg-buildpackage -b -d --no-sign
- name: Install apparmor.d - name: Install apparmor.d
run: sudo dpkg --install ../apparmor.d_*_all.deb run: sudo dpkg --install ../apparmor.d_*_all.deb