fix(ci): get version number in ci checkout
All checks were successful
/ build_debian (push) Successful in 17s

This commit is contained in:
s3lph 2024-11-29 01:41:28 +01:00
parent 923bf05392
commit dcf7caa08f
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -10,12 +10,14 @@ jobs:
image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest image: git.kabelsalat.ch/s3lph/package-pipeline-builder:latest
steps: steps:
- uses: https://code.forgejo.org/actions/checkout@v4 - uses: https://code.forgejo.org/actions/checkout@v4
with:
fetch-depth: 0
- name: Prepare package - name: Prepare package
run: | run: |
mkdir -p \ mkdir -p \
package/debian/barcode-utils/usr/bin \ package/debian/barcode-utils/usr/bin \
package/debian/barcode-utils/usr/share/webextensions package/debian/barcode-utils/usr/share/webextensions
sed -re "s/__VERSION__/0.$(git rev-list --count ${GITHUB_REF_NAME})-1/g" -i package/debian/barcode-utils/DEBIAN/control sed -re "s/__VERSION__/0.$(git rev-list --count HEAD)-1/g" -i package/debian/barcode-utils/DEBIAN/control
# barcode-websocket-server # barcode-websocket-server
cp barcode-websocket-server package/debian/barcode-utils/usr/bin/ cp barcode-websocket-server package/debian/barcode-utils/usr/bin/
# webextension-tabfocus # webextension-tabfocus