Do not change release file for secondary branches

This commit is contained in:
Daniil Gentili 2018-03-02 00:53:20 +00:00
parent bd3be419ac
commit e3e5f730fd

View File

@ -45,9 +45,9 @@ git clone git@github.com:danog/MadelineProtoPhar
cd MadelineProtoPhar
cp "../madeline$branch.phar" .
cp ../phar.php .
echo -n $TRAVIS_COMMIT > release
[ "$TRAVIS_BRANCH" == "master" ] && echo -n $TRAVIS_COMMIT > release
git add -A
git commit -am "Release $TRAVIS_COMMIT"
git commit -am "Release $TRAVIS_BRANCH $TRAVIS_COMMIT"
git push origin master
cd ..
echo "$TRAVIS_COMMIT_MESSAGE" | grep "Apply fixes from StyleCI" && exit