Skip to content

Commit fed9a5f

Browse files
committed
Update build-client-deb.yml
1 parent 495c068 commit fed9a5f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-client-deb.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
cd bareos
2828
git fetch --all
2929
git checkout ${{ github.ref_name }} # ex: Release/24.0.4
30-
30+
- name: Extract version from tag
31+
id: vars
32+
run: echo "VERSION=${GITHUB_REF_NAME#Release/}" >> $GITHUB_ENV
3133
- name: Build Bareos Client
3234
working-directory: bareos
3335
run: |
@@ -42,7 +44,7 @@ jobs:
4244
cmake -Dclient-only=ON \
4345
-DCMAKE_INSTALL_PREFIX=/usr \
4446
-DCPACK_PACKAGE_CONTACT="Libertech <contact@libertech.fr>" \
45-
-DCPACK_PACKAGE_VERSION=${{ github.ref_name.replace('Release/', '') }} \
47+
-DCPACK_PACKAGE_VERSION=$VERSION \
4648
-DCPACK_DEBIAN_PACKAGE_MAINTAINER="Libertech <contact@libertech.fr>" \
4749
-DCPACK_DEBIAN_PACKAGE_DEPENDS="libssl3, zlib1g, libacl1, liblzo2-2, libjansson4, libreadline8" \
4850
-DCPACK_DEBIAN_PACKAGE_CONTROL_EXTRA="$(pwd)/debian/preinst;$(pwd)/debian/postinst" \

0 commit comments

Comments
 (0)