Skip to content

Commit

Permalink
Look for any branch starting with release (chartjs#7087)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Feb 11, 2020
1 parent 26ea9f0 commit 6971849
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Expand Up @@ -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
Expand Down

0 comments on commit 6971849

Please sign in to comment.