Skip to content

Commit d32c72e

Browse files
update publish.sh
1 parent 2985de6 commit d32c72e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/scripts/publish.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ MINOR=$(cat $VERSION_FILE | grep Minor | grep -Eo '[0-9]*');
1313
PATCH=$(cat $VERSION_FILE | grep Patch | grep -Eo '[0-9]*');
1414

1515
LAST_TAG=$(git tag | tail -n 1);
16-
RC = 0;
16+
RC=0;
1717
if [ "$RELEASE_CANDIDATE" = true ]
1818
then
19-
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l || true);
19+
RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l | xargs || true);
2020
fi
21-
if [ "$VERSION_CHANGE" = "MINOR" && $RC = 0 ]
21+
if [ "$VERSION_CHANGE" = "MINOR" ] && [ $RC = 0 ]
2222
then
2323
MINOR=$((MINOR+1));
2424
PATCH=0;
2525
fi;
26-
if [ "$VERSION_CHANGE" = "PATCH" && $RC = 0 ]
26+
if [ "$VERSION_CHANGE" = "PATCH" ] && [ $RC = 0 ]
2727
then
2828
PATCH=$((PATCH+1));
2929
fi;

0 commit comments

Comments
 (0)