From a4e98a18d09d10c5c97d6c1e079892099f1d7ee8 Mon Sep 17 00:00:00 2001 From: Alexander Rashed Date: Tue, 19 Nov 2024 16:54:00 +0100 Subject: [PATCH] fix localstack CLI version detection --- .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'