This commit is contained in:
Rohit Tanwar
2018-01-16 18:11:37 +05:30
parent 321da91735
commit 01077dcf5c

View File

@ -7,7 +7,7 @@ commit_website_files() {
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
if [ $TRAVIS_BRANCH == "master" ]; then
echo "Committing to master branch..."
git checkout -b "travis"
git checkout master
git add -A
git commit -a --message="travis_commit"
fi
@ -18,7 +18,7 @@ upload_files() {
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
if [ $TRAVIS_BRANCH == "master" ]; then
echo "Pushing to master branch..."
git push --force "https://${GH_TOKEN}@github.com/kriadmin/30-seconds-of-python-code.git" travis
git push --force "https://${GH_TOKEN}@github.com/kriadmin/30-seconds-of-python-code.git" master
fi
fi
}