We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e23eda5 commit 4a58217Copy full SHA for 4a58217
release.sh
@@ -5,6 +5,11 @@ git diff --quiet HEAD || (echo "please revert the uncommited changes"; exit 1)
5
6
SPARK_VERSION="${1?Missing required argument: semver}"
7
8
+(echo "$SPARK_VERSION" | grep -Eq '^\d+\.\d+\.\d+$') || {
9
+ echo Invalid version string \'$SPARK_VERSION\'. Must be MAJOR.MINOR.PATCH
10
+ exit 1
11
+}
12
+
13
sed -i '' -e "s/SPARK_VERSION = .*/SPARK_VERSION = '$SPARK_VERSION'/" lib/constants.js
14
git add lib/constants.js
15
git commit -m v"$SPARK_VERSION"
0 commit comments