2018-11-14 21:40:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-11-15 10:28:39 +00:00
|
|
|
echo ${TRAVIS_EVENT_TYPE}
|
2018-11-15 10:21:22 +00:00
|
|
|
|
2018-11-15 10:28:39 +00:00
|
|
|
if [[ ${TRAVIS_EVENT_TYPE} != 'push' ]]
|
2018-11-14 23:35:36 +00:00
|
|
|
then
|
2018-11-15 11:14:18 +00:00
|
|
|
echo 'exit'
|
2018-11-14 23:35:36 +00:00
|
|
|
exit
|
|
|
|
fi
|
2018-11-14 21:40:17 +00:00
|
|
|
|
2018-11-14 23:50:32 +00:00
|
|
|
git checkout master
|
2018-11-14 21:40:17 +00:00
|
|
|
|
|
|
|
git config user.name "serhii-londar"
|
|
|
|
git config user.email "serhii.londar@gmail.com"
|
|
|
|
|
|
|
|
echo add readme
|
|
|
|
git add README.md
|
|
|
|
|
|
|
|
echo commit
|
|
|
|
git commit -m "Generate README"
|
|
|
|
|
|
|
|
echo push
|
2018-11-14 23:50:32 +00:00
|
|
|
git push --quiet "https://${DANGER_GITHUB_API_TOKEN}@github.com/serhii-londar/open-source-mac-os-apps.git" master:master > /dev/null 2>&1
|