2016-05-11 17:22:10 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2016-05-25 23:40:30 +03:00
|
|
|
git config user.name "READMEbot"
|
|
|
|
git config user.email "readmebot@users.noreply.github.com"
|
2016-05-11 17:22:10 +03:00
|
|
|
|
2016-05-13 22:17:36 +03:00
|
|
|
status=`git status`
|
|
|
|
|
2016-05-13 22:05:16 +03:00
|
|
|
if [[ $status == *"README.md"* ]]
|
|
|
|
then
|
|
|
|
git add README.md
|
|
|
|
git commit -m "[auto] [ci skip] Generate README"
|
|
|
|
fi
|
2016-05-13 21:27:14 +03:00
|
|
|
|
2016-05-13 22:05:16 +03:00
|
|
|
if [[ $status == *"ARCHIVE.md"* ]]
|
|
|
|
then
|
|
|
|
git add ARCHIVE.md
|
|
|
|
git commit -m "[auto] [ci skip] Generate ARCHIVE"
|
|
|
|
fi
|
2016-05-13 21:27:14 +03:00
|
|
|
|
2017-06-15 00:07:35 +03:00
|
|
|
if [[ $status == *"APPSTORE.md"* ]]
|
|
|
|
then
|
|
|
|
git add APPSTORE.md
|
|
|
|
git commit -m "[auto] [ci skip] Generate APPSTORE"
|
|
|
|
fi
|
|
|
|
|
2019-05-07 14:53:46 +03:00
|
|
|
if [[ $status == *"LATEST.md"* ]]
|
|
|
|
then
|
|
|
|
git add LATEST.md
|
|
|
|
git commit -m "[auto] [ci skip] Generate LATEST"
|
|
|
|
fi
|
|
|
|
|
2018-09-02 02:52:58 +03:00
|
|
|
git push --quiet "https://${GH_TOKEN}@github.com/dkhamsing/open-source-ios-apps" master:master > /dev/null 2>&1
|