From 7618c91f544e36f7b03c082d42687436a57453cd Mon Sep 17 00:00:00 2001 From: Adarsh Shah Date: Mon, 8 Jan 2024 16:41:35 -0500 Subject: [PATCH] uses powershell script to get CLI version --- .github/workflows/tembo_release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tembo_release.yml b/.github/workflows/tembo_release.yml index e45cb8649..eaed9833e 100644 --- a/.github/workflows/tembo_release.yml +++ b/.github/workflows/tembo_release.yml @@ -91,9 +91,9 @@ jobs: id: cli_version_windows run: | - FOR /F "tokens=2" %%F IN ('"target/${{ matrix.target }}/release/tembo.exe --version"') DO SET TEMBO_VERSION=%%F - FOR /F "tokens=2" %%F IN ('"%TEMBO_VERSION% -replace '', '-'"') DO SET TEMBO_CLI_NAME=%%F - echo "TEMBO_CLI_NAME=%TEMBO_CLI_NAME%" >> $GITHUB_ENV + $TEMBO_VERSION = $(target/${{ matrix.target }}/release/tembo.exe --version) + $TEMBO_CLI_NAME = $TEMBO_VERSION.replace(' ','-') + echo "TEMBO_CLI_NAME=$TEMBO_CLI_NAME" >> $GITHUB_ENV if: runner.os == 'Windows' - name: "Generate release changelog"