Skip to content

Commit e9fd8a6

Browse files
Update publish.sh (#229)
1 parent f89a89b commit e9fd8a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/scripts/publish.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ LAST_TAG=$(git tag | tail -n 1);
1212
MAJOR=$(echo $LAST_TAG | sed -E 's/v([0-9]+)\..*/\1/');
1313
MINOR=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.([0-9]+)\..*/\1/');
1414
PATCH=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.[0-9]+\.([0-9]+)-rc[0-9]+/\1/');
15-
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l | xargs || true);
15+
RC=0;
1616

17+
if [ "$RELEASE_CANDIDATE" = true ]
18+
then
19+
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l | xargs || true);
20+
fi
1721
if [ "$VERSION_CHANGE" = "MINOR" ] && [ $RC = 0 ]
1822
then
1923
MINOR=$((MINOR+1));

0 commit comments

Comments
 (0)