Skip to content

Commit

Permalink
fix localstack CLI version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrashed committed Nov 19, 2024
1 parent 52a3b57 commit 37015c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 37015c9

Please sign in to comment.