Travis
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user