We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c15ccb0 commit 70fae37Copy full SHA for 70fae37
.github/workflows/release.yml
@@ -78,6 +78,11 @@ jobs:
78
# Count commits since the base tag
79
PATCH=$(git rev-list "$LATEST_TAG"..HEAD --count)
80
81
+ if [ "$PATCH" -eq 0 ]; then
82
+ echo "No commits since $LATEST_TAG. Nothing to release."
83
+ exit 1
84
+ fi
85
+
86
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
87
echo "Version: $NEW_VERSION (from base tag $LATEST_TAG + $PATCH commits)"
88
0 commit comments