8000 fix localstack CLI version detection (#31) · localstack/localstack-cli@686d971 · GitHub
[go: up one dir, main page]

Skip to content

Commit 686d971

Browse files
authored
fix localstack CLI version detection (#31)
1 parent 8931258 commit 686d971

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,10 @@ jobs:
148148
id: cli_version
149149
shell: bash
150150
run: |
151-
dist-bin/localstack --version
152-
echo "cli_version=$(dist-bin/localstack --version)" >> $GITHUB_OUTPUT
151+
VERSION_OUTPUT=$(dist-bin/localstack --version)
152+
echo $VERSION_OUTPUT
153+
# using bash parameter expansion to remove the part after the last space, since sed won't work on MacOS
154+
echo "cli_version=${VERSION_OUTPUT##* }" >> $GITHUB_OUTPUT
153155
154156
- name: Archive distribution (Linux, MacOS)
155157
if: matrix.os != 'windows'

0 commit comments

Comments
 (0)
0