Skip to content

Commit

Permalink
updates logic to fetch version
Browse files Browse the repository at this point in the history
  • Loading branch information
shahadarsh committed Jan 8, 2024
1 parent 1a2c407 commit a1f5114
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tembo_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ jobs:
id: cli_version_windows
run: |
TEMBO_VERSION=$(target/${{ matrix.target }}/release/tembo.exe --version)
TEMBO_CLI_NAME=$($TEMBO_VERSION -replace ' ','-')
echo "TEMBO_CLI_NAME=$TEMBO_CLI_NAME" >> $GITHUB_ENV
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
if: runner.os == 'Windows'

- name: "Generate release changelog"
Expand Down

0 comments on commit a1f5114

Please sign in to comment.