From 770aa2fbb8c7e27300f2f6fd15f85f67e6371f9a Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Thu, 28 Sep 2023 15:19:46 +0200 Subject: [PATCH] version number extract fix --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd92633b..fba23989 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: echo "GIT_TAG=${GIT_TAG}" echo "GIT_TAG=${GIT_TAG}" >> $GITHUB_OUTPUT - ZENOH_VERSION=$(sed -n 's/^ .*VERSION \([0-9][0-9]*\.[0-9][0-9]*\.[0.9][0-9]*\.[0-9][0-9]*\).*/\1/p' CMakeLists.txt | head -n1) + ZENOH_VERSION=$(sed -n 's/^[ \t]*VERSION \([0-9][0-9]*\.[0-9][0-9]*\.[0.9][0-9]*\.[0-9][0-9]*\).*/\1/p' CMakeLists.txt | head -n1) echo "ZENOH_VERSION=${ZENOH_VERSION}" echo "ZENOH_VERSION=${ZENOH_VERSION}" >> $GITHUB_OUTPUT if [ -n "${GIT_TAG}" ]; then