You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
-
- set -o errexit -o nounset
-
- if [ "$TRAVIS_BRANCH" != "master" ]
- then
- echo "This commit was made against $TRAVIS_BRANCH and not master! No deploy!"
- exit 0
- fi
-
- rev=$(git rev-parse --short HEAD)
-
- mkdir deploy
- cd deploy
-
- git init
- git config --global user.name "Travis CI"
- git config --global user.email "builds@travis-ci.org"
-
- git remote add upstream "https://$GH_TOKEN@github.com/toddmotto/public-apis.git"
- git fetch upstream
- git reset upstream/master
-
- mv ../../json .
-
- git add json/
- git commit -m "rebuild JSON at ${rev}" -m "[ci skip]"
- git push upstream HEAD:master
|