Skip to content

Commit 2df6986

Browse files
authored
Look for any branch starting with release (#7087) (#7089)
1 parent 26ea9f0 commit 2df6986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: scripts/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TARGET_REPO_URL="https://[email protected]/chartjs/chartjs.github.io
88
VERSION_REGEX='[[:digit:]]+.[[:digit:]]+.[[:digit:]]+(-.*)?'
99

1010
# 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
1212
# Travis executes this script from the repository root, so at the same level than package.json
1313
VERSION=$(node -p -e "require('./package.json').version")
1414
elif [ "$TRAVIS_BRANCH" == "master" ]; then

Diff for: scripts/release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
if [ "$TRAVIS_BRANCH" != "release" ]; then
5+
if [[ ! "$TRAVIS_BRANCH" =~ ^release.*$ ]]; then
66
echo "Skipping release because this is not the 'release' branch"
77
exit 0
88
fi

0 commit comments

Comments
 (0)