From 686d97152456f7f454e2298bf6f99982f83c118a Mon Sep 17 00:00:00 2001 From: Alexander Rashed <2796604+alexrashed@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:06:32 +0100 Subject: [PATCH] fix localstack CLI version detection (#31) --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82bf590..34c24e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -148,8 +148,10 @@ jobs: id: cli_version shell: bash run: | - dist-bin/localstack --version - echo "cli_version=$(dist-bin/localstack --version)" >> $GITHUB_OUTPUT + VERSION_OUTPUT=$(dist-bin/localstack --version) + echo $VERSION_OUTPUT + # using bash parameter expansion to remove the part after the last space, since sed won't work on MacOS + echo "cli_version=${VERSION_OUTPUT##* }" >> $GITHUB_OUTPUT - name: Archive distribution (Linux, MacOS) if: matrix.os != 'windows'