fix(ci): get version number in ci checkout

This commit is contained in:
s3lph 2024-11-29 01:32:09 +01:00
parent 55a138c2a7
commit 923bf05392
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -15,7 +15,7 @@ jobs:
mkdir -p \
package/debian/barcode-utils/usr/bin \
package/debian/barcode-utils/usr/share/webextensions
sed -re "s/__VERSION__/0.$(git rev-list --count HEAD)-1/g" -i package/debian/barcode-utils/DEBIAN/control
sed -re "s/__VERSION__/0.$(git rev-list --count ${GITHUB_REF_NAME})-1/g" -i package/debian/barcode-utils/DEBIAN/control
# barcode-websocket-server
cp barcode-websocket-server package/debian/barcode-utils/usr/bin/
# webextension-tabfocus