File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ TARGET_REPO_URL="https://$GITHUB_AUTH_TOKEN@github.com/chartjs/chartjs.github.io
8
8
VERSION_REGEX=' [[:digit:]]+.[[:digit:]]+.[[:digit:]]+(-.*)?'
9
9
10
10
# Make sure that this script is executed only for the release and master branches
11
- if [ " $TRAVIS_BRANCH " == " release" ]; then
11
+ if [ " $TRAVIS_BRANCH " =~ ^ release. * $ ]; then
12
12
# Travis executes this script from the repository root, so at the same level than package.json
13
13
VERSION=$( node -p -e " require('./package.json').version" )
14
14
elif [ " $TRAVIS_BRANCH " == " master" ]; then
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- if [ " $TRAVIS_BRANCH " != " release" ]; then
5
+ if [[ ! " $TRAVIS_BRANCH " =~ ^ release. * $ ] ]; then
6
6
echo " Skipping release because this is not the 'release' branch"
7
7
exit 0
8
8
fi
You can’t perform that action at this time.
0 commit comments