We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdabddc commit cb6d2a9Copy full SHA for cb6d2a9
.github/workflows/semantic-release.yaml
@@ -49,13 +49,13 @@ jobs:
49
env:
50
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
51
run: |
52
- output=$(semantic-release version)
+ output=$(semantic-release version 2>&1)
53
echo "Debug - Full output:"
54
echo "$output"
55
- echo "Debug - Checking for version:"
+ version=$(echo "$output" | head -n 1)
56
+ echo "version=$version" >> $GITHUB_OUTPUT
57
if echo "$output" | grep -q "The next version is"; then
58
echo "released=true" >> $GITHUB_OUTPUT
- echo "version=$(echo "$output" | grep -oP 'The next version is: \K[0-9.]+')" >> $GITHUB_OUTPUT
59
else
60
echo "released=false" >> $GITHUB_OUTPUT
61
fi
0 commit comments