Skip to content

Commit 9bd0245

Browse files
committed
Fix release script to handle workflows sdk.
Signed-off-by: Artur Souza <[email protected]>
1 parent b6514bb commit 9bd0245

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/update_sdk_version.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
set -uex
44

5-
DAPR_JAVA_SDK_VERSION=$1
6-
# replace the major version of DAPR_JAVA_SDK_VERSION with 0 while in alpha
7-
DAPR_WORKFLOW_SDK_VERSION=$(echo $DAPR_JAVA_SDK_VERSION | sed -E "s/[0-9]+\.(.*?)/0.\1/")
5+
# The workflows sdk tracks the regular SDK minor and patch versions, just not the major.
6+
# Replaces the workflows SDK major version to 0 until it is stable.
7+
DAPR_JAVA_WORKFLOWS_SDK_VERSION=`echo $DAPR_JAVA_SDK_VERSION | sed 's/^[0-9]*\./0./'`
88

99
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_VERSION
1010
mvn versions:set-property -Dproperty=dapr.sdk.version -DnewVersion=$DAPR_JAVA_SDK_VERSION -f sdk-tests/pom.xml
1111

12-
mvn versions:set -DnewVersion=$DAPR_WORKFLOW_SDK_VERSION -f sdk-workflows/pom.xml
13-
mvn versions:set-property -Dproperty=dapr.sdk-workflows.version -DnewVersion=$DAPR_WORKFLOW_SDK_VERSION
12+
mvn versions:set -DnewVersion=$DAPR_JAVA_WORKFLOWS_SDK_VERSION -f sdk-workflows/pom.xml
13+
mvn versions:set-property -Dproperty=dapr.sdk-workflows.version -DnewVersion=$DAPR_JAVA_WORKFLOWS_SDK_VERSION
14+
15+
git clean -f

0 commit comments

Comments
 (0)