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 f89a89b commit e9fd8a6Copy full SHA for e9fd8a6
.github/scripts/publish.sh
@@ -12,8 +12,12 @@ LAST_TAG=$(git tag | tail -n 1);
12
MAJOR=$(echo $LAST_TAG | sed -E 's/v([0-9]+)\..*/\1/');
13
MINOR=$(echo $LAST_TAG | sed -E 's/v[0-9]+\.([0-9]+)\..*/\1/');
14
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);
+RC=0;
16
17
+if [ "$RELEASE_CANDIDATE" = true ]
18
+then
19
+ RC=$(git tag | grep "v$MAJOR.$MINOR.$PATCH-rc" | wc -l | xargs || true);
20
+fi
21
if [ "$VERSION_CHANGE" = "MINOR" ] && [ $RC = 0 ]
22
then
23
MINOR=$((MINOR+1));
0 commit comments