]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Look for any branch starting with release (#7087) (#7089) 7378/head
authorBen McCann <322311+benmccann@users.noreply.github.com>
Tue, 11 Feb 2020 18:09:44 +0000 (10:09 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 18:09:44 +0000 (13:09 -0500)
scripts/deploy.sh
scripts/release.sh

index 35ae4d4e47361e785fda3b4fd322b8058ef829db..b5ff1d6dc7f0aa7b63e13482fd8021b940c66cd5 100755 (executable)
@@ -8,7 +8,7 @@ TARGET_REPO_URL="https://$GITHUB_AUTH_TOKEN@github.com/chartjs/chartjs.github.io
 VERSION_REGEX='[[:digit:]]+.[[:digit:]]+.[[:digit:]]+(-.*)?'
 
 # Make sure that this script is executed only for the release and master branches
-if [ "$TRAVIS_BRANCH" == "release" ]; then
+if [ "$TRAVIS_BRANCH" =~ ^release.*$ ]; then
     # Travis executes this script from the repository root, so at the same level than package.json
     VERSION=$(node -p -e "require('./package.json').version")
 elif [ "$TRAVIS_BRANCH" == "master" ]; then
index 71f588034f262a5c1e17bf9b0bfdb7184c282e15..13686b4d7e91a30f05b71b7188b448b18c53bc0c 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -e
 
-if [ "$TRAVIS_BRANCH" != "release" ]; then
+if [[ ! "$TRAVIS_BRANCH" =~ ^release.*$ ]]; then
     echo "Skipping release because this is not the 'release' branch"
     exit 0
 fi