Skip to content

Commit cb6d2a9

Browse files
committed
fix: need to capture also stderr
1 parent cdabddc commit cb6d2a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/semantic-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
env:
5050
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
5151
run: |
52-
output=$(semantic-release version)
52+
output=$(semantic-release version 2>&1)
5353
echo "Debug - Full output:"
5454
echo "$output"
55-
echo "Debug - Checking for version:"
55+
version=$(echo "$output" | head -n 1)
56+
echo "version=$version" >> $GITHUB_OUTPUT
5657
if echo "$output" | grep -q "The next version is"; then
5758
echo "released=true" >> $GITHUB_OUTPUT
58-
echo "version=$(echo "$output" | grep -oP 'The next version is: \K[0-9.]+')" >> $GITHUB_OUTPUT
5959
else
6060
echo "released=false" >> $GITHUB_OUTPUT
6161
fi

0 commit comments

Comments
 (0)