From 3a9e63e2795d0fbcf9197d86e369cc7ed279d1cc Mon Sep 17 00:00:00 2001 From: Justin Alvarez Date: Fri, 15 Nov 2024 22:22:40 +0000 Subject: [PATCH] fix version extraction logic Signed-off-by: Justin Alvarez --- .github/workflows/release-linux.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-linux.yaml b/.github/workflows/release-linux.yaml index cb40e3826..3c1b3392a 100644 --- a/.github/workflows/release-linux.yaml +++ b/.github/workflows/release-linux.yaml @@ -81,7 +81,7 @@ jobs: run: | mkdir -p ./_output/${{ env.RELEASE_VERSION }}/static/amd64 tar -xzf ./_output/${{ steps.build.outputs.STATIC_AMD64_BINARY_NAME }} -C ./_output/${{ env.RELEASE_VERSION }}/static/amd64 - STATIC_AMD64_BINARY_VERSION=$(sudo ./_output/${{ env.RELEASE_VERSION }}/static/amd64/bin/finch --version | grep -oP 'v\d+\.\d+\.\d+') + STATIC_AMD64_BINARY_VERSION=$(sudo ./_output/${{ env.RELEASE_VERSION }}/static/amd64/bin/finch --version | sed -n 's/finch version //p') export RELEASE_VERSION=${{ env.RELEASE_VERSION }} if [ "$STATIC_AMD64_BINARY_VERSION" != "$RELEASE_VERSION" ]; then echo "Version mismatch"