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