mirror of
https://github.com/serhii-londar/open-source-mac-os-apps.git
synced 2024-11-28 18:40:32 +00:00
30 lines
516 B
Bash
30 lines
516 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo ${TRAVIS_EVENT_TYPE}
|
|
echo ${TRAVIS_BRANCH}
|
|
|
|
if [[ ${TRAVIS_EVENT_TYPE} != 'push' ]]
|
|
then
|
|
exit
|
|
fi
|
|
|
|
if [[ ${TRAVIS_BRANCH} != 'master' ]]
|
|
then
|
|
exit
|
|
fi
|
|
|
|
git checkout master
|
|
|
|
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
|
|
git push --quiet "https://${DANGER_GITHUB_API_TOKEN}@github.com/serhii-londar/open-source-mac-os-apps.git" master:master > /dev/null 2>&1
|