We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26ea9f0 commit 2df6986Copy full SHA for 2df6986
scripts/deploy.sh
@@ -8,7 +8,7 @@ TARGET_REPO_URL="https://[email protected]/chartjs/chartjs.github.io
8
VERSION_REGEX='[[:digit:]]+.[[:digit:]]+.[[:digit:]]+(-.*)?'
9
10
# Make sure that this script is executed only for the release and master branches
11
-if [ "$TRAVIS_BRANCH" == "release" ]; then
+if [ "$TRAVIS_BRANCH" =~ ^release.*$ ]; then
12
# Travis executes this script from the repository root, so at the same level than package.json
13
VERSION=$(node -p -e "require('./package.json').version")
14
elif [ "$TRAVIS_BRANCH" == "master" ]; then
scripts/release.sh
@@ -2,7 +2,7 @@
2
3
set -e
4
5
-if [ "$TRAVIS_BRANCH" != "release" ]; then
+if [[ ! "$TRAVIS_BRANCH" =~ ^release.*$ ]]; then
6
echo "Skipping release because this is not the 'release' branch"
7
exit 0
fi
0 commit comments