[ci] fixes 3

This commit is contained in:
dkhamsing 2018-09-01 16:52:58 -07:00
parent 314c10d592
commit 311c38d312
1 changed files with 1 additions and 8 deletions

9
.github/deploy.sh vendored
View File

@ -1,35 +1,28 @@
#!/bin/bash
echo 'set -e'
set -e
echo 'git config'
git config user.name "READMEbot"
git config user.email "readmebot@users.noreply.github.com"
status=`git status`
echo $status
if [[ $status == *"README.md"* ]]
then
echo 'git add readme'
git add README.md
git commit -m "[auto] [ci skip] Generate README"
fi
if [[ $status == *"ARCHIVE.md"* ]]
then
echo 'git add archive'
git add ARCHIVE.md
git commit -m "[auto] [ci skip] Generate ARCHIVE"
fi
if [[ $status == *"APPSTORE.md"* ]]
then
echo 'git add appstore'
git add APPSTORE.md
git commit -m "[auto] [ci skip] Generate APPSTORE"
fi
echo 'git push'
git push "https://test:test@github.com/dkhamsing/open-source-ios-apps" master:master > /dev/null 2>&1
git push --quiet "https://${GH_TOKEN}@github.com/dkhamsing/open-source-ios-apps" master:master > /dev/null 2>&1