File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,17 +130,17 @@ jobs:
130130 CURRENT_VERSION="${{ steps.check.outputs.current_version }}"
131131 CURRENT_BASE="${{ steps.check.outputs.base_version }}"
132132
133- # Get version from latest release (any type )
134- LATEST_RELEASE_TAG=$(gh release list --limit 1 | cut -f3 | head -n1 || echo "")
133+ # Get version from latest beta or production release (excluding alpha )
134+ LATEST_RELEASE_TAG=$(gh release list --limit 100 | cut -f3 | grep -E "(RELEASE)" | head -n1 || echo "")
135135
136136 if [ -n "$LATEST_RELEASE_TAG" ]; then
137- # Extract base version from latest release tag
137+ # Extract base version from latest beta/production release tag
138138 LATEST_RELEASE_BASE=$(echo "$LATEST_RELEASE_TAG" | sed 's/^v//' | sed 's/-.*$//')
139- echo "Found latest release: $LATEST_RELEASE_TAG (base: $LATEST_RELEASE_BASE)"
139+ echo "Found latest beta/production release: $LATEST_RELEASE_TAG (base: $LATEST_RELEASE_BASE)"
140140 else
141- # No releases found, use 0.0.0 as baseline
141+ # No beta/production releases found, use 0.0.0 as baseline
142142 LATEST_RELEASE_BASE="0.0.0"
143- echo "No releases found, using baseline: $LATEST_RELEASE_BASE"
143+ echo "No beta/production releases found, using baseline: $LATEST_RELEASE_BASE"
144144 fi
145145
146146 echo "current_base=$CURRENT_BASE" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments