open-source-mac-os-apps-mirror/.github/deploy.sh

23 lines
409 B
Bash
Raw Normal View History

2018-11-14 21:40:17 +00:00
#!/bin/bash
set -e
2018-11-14 23:50:32 +00:00
if [[ $TRAVIS_BRANCH != 'master' ]]
2018-11-14 23:35:36 +00:00
then
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