Skip to content

Commit 34e0575

Browse files
committed
fix: Use grep to find string in multiline output
1 parent 9c94572 commit 34e0575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/semantic-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
5151
run: |
5252
output=$(semantic-release version)
53-
if [[ $output == *"The next version is"* ]]; then
53+
if echo "$output" | grep -q "The next version is"; then
5454
echo "released=true" >> $GITHUB_OUTPUT
5555
else
5656
echo "released=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)