You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NEXT_VERSION=$(grep "The next release version is" semantic-output.txt | sed -E 's/.*The next release version is ([0-9]+\.[0-9]+\.[0-9]+).*/\1/' | head -1)
61
-
62
-
if [ -z "$NEXT_VERSION" ]; then
59
+
# Check if semantic-release determined a new version is needed
60
+
if ! grep -q "The next release version is" semantic-output.txt; then
63
61
echo "::notice::No new version needed."
64
62
echo "should_create_pr=false" >> $GITHUB_OUTPUT
65
63
exit 0
66
64
fi
67
65
66
+
# Get the version that semantic-release would create (for comparison)
67
+
SR_VERSION=$(grep "The next release version is" semantic-output.txt | sed -E 's/.*The next release version is ([0-9]+\.[0-9]+\.[0-9]+).*/\1/' | head -1)
68
+
69
+
# Strip -beta suffix from current version to get base version
70
+
BASE_VERSION=$(echo "$CURRENT_VERSION" | sed 's/-beta$//')
0 commit comments