Skip to content

Commit 83060f4

Browse files
committed
fix: Add some debug logging
Still not determining correctly whether a release is needed.
1 parent f3317fe commit 83060f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/semantic-release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ jobs:
5050
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
5151
run: |
5252
output=$(semantic-release version)
53+
echo "Debug - Full output:"
54+
echo "$output"
55+
echo "Debug - Checking for version:"
5356
if echo "$output" | grep -q "The next version is"; then
5457
echo "released=true" >> $GITHUB_OUTPUT
58+
echo "version=$(echo "$output" | grep -oP 'The next version is: \K[0-9.]+')" >> $GITHUB_OUTPUT
5559
else
5660
echo "released=false" >> $GITHUB_OUTPUT
5761
fi

0 commit comments

Comments
 (0)