1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-26 13:14:31 +01:00

Added logic to cut revision from version number: 1.2.0+git20220427-1 to 1.2.0+git20220427

This commit is contained in:
Pavel Odintsov 2022-04-29 20:44:48 +01:00
parent 99de6e7981
commit 5e9634d5c2

@ -13,7 +13,7 @@ jobs:
- run: apt install -y dpkg-dev pbuilder
- run: git clone https://github.com/pavel-odintsov/fastnetmon
- run: git clone https://salsa.debian.org/debian/fastnetmon.git fastnetmon-debian-salsa
- run: tar -czf fastnetmon_$(head -n 1 fastnetmon-debian-salsa/debian/changelog|awk '{print $2}'|sed 's/[()]//g').orig.tar.gz fastnetmon
- run: tar -czf fastnetmon_$(head -n 1 fastnetmon-debian-salsa/debian/changelog|awk '{print $2}'|sed 's/[()]//g' | sed 's/\-[0-9]+$//').orig.tar.gz fastnetmon
- run: ls -la
- run: cd fastnetmon && rm -rf debian && cp -a ../fastnetmon-debian-salsa/debian/ . && dpkg-buildpackage -S -sa -d
build_docker: