Skip to content

Commit 70fae37

Browse files
committed
Update release.yml
1 parent c15ccb0 commit 70fae37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ jobs:
7878
# Count commits since the base tag
7979
PATCH=$(git rev-list "$LATEST_TAG"..HEAD --count)
8080
81+
if [ "$PATCH" -eq 0 ]; then
82+
echo "No commits since $LATEST_TAG. Nothing to release."
83+
exit 1
84+
fi
85+
8186
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
8287
echo "Version: $NEW_VERSION (from base tag $LATEST_TAG + $PATCH commits)"
8388

0 commit comments

Comments
 (0)