From 21b133e49c64c80a6b7ac5cb55b82a98f8d37d63 Mon Sep 17 00:00:00 2001 From: David Andersen Date: Thu, 8 Aug 2024 13:30:42 -0700 Subject: [PATCH] put version into variable --- .github/workflows/release-deb.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-deb.yml b/.github/workflows/release-deb.yml index 880b4c7..910bc45 100644 --- a/.github/workflows/release-deb.yml +++ b/.github/workflows/release-deb.yml @@ -54,8 +54,10 @@ jobs: # run: dpkg-deb --build nagios-plugins-ets-1.4 - name: Build DEB package run: | - wget -O ../nagios-plugins-ets_1.4.orig.tar.gz https://github.com/ucsd-ets/nagios-plugins-ets/archive/refs/tags/1.2.tar.gz - tar zxvf ../nagios-plugins-ets_1.4.orig.tar.gz --strip-components=1 + ## READ VERSION FROM CONTROL FILE + VERSION=1.2 + wget -O ../nagios-plugins-ets_${VERSION}.orig.tar.gz https://github.com/ucsd-ets/nagios-plugins-ets/archive/refs/tags/1.2.tar.gz + tar zxvf ../nagios-plugins-ets_${VERSION}.orig.tar.gz --strip-components=1 debuild -us -uc - name: Extract tag name