Преглед на файлове

Check if $TRAVIS_COMMIT variable starts with “Release” instead of checking for TAG which we don’t use since Lerna (#989)

Artur Paikin преди 6 години
родител
ревизия
e0f9d38440
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      bin/upload-to-cdn.sh

+ 2 - 2
bin/upload-to-cdn.sh

@@ -44,8 +44,8 @@ pushd "${__root}" > /dev/null 2>&1
       echo "On Travis (TRAVIS is '${TRAVIS}'), I'm not pushing releases to the CDN for pull requests (TRAVIS_PULL_REQUEST is '${TRAVIS_PULL_REQUEST}')"
       exit 0
     fi
-    if [ -z "${TRAVIS_TAG:-}" ]; then
-      echo "On Travis (TRAVIS is '${TRAVIS}'), I'm only pushing releases to the CDN when a tag is being built (TRAVIS_TAG is '${TRAVIS_TAG}')"
+    if [[ ! "$TRAVIS_COMMIT" =~ ^Release* ]]; then
+      echo "On Travis (TRAVIS is '${TRAVIS}'), I'm not pushing releases to the CDN unless commit message starts with 'Release' (TRAVIS_COMMIT is '${TRAVIS_COMMIT}')"
       exit 0
     fi
   fi