зеркало из https://github.com/nextcloud/android.git
check if master branch, then always update master.html
This commit is contained in:
Родитель
5c28391f36
Коммит
1ecb3185b8
|
@ -2,4 +2,8 @@
|
|||
|
||||
# $1: username, $2: password/token, $3: pull request number
|
||||
|
||||
curl 2>/dev/null -u $1:$2 https://api.github.com/repos/nextcloud/android/pulls/$3 | grep \"ref\": | grep -v master | cut -d"\"" -f4
|
||||
if [ -z $3 ] ; then
|
||||
echo "master";
|
||||
else
|
||||
curl 2>/dev/null -u $1:$2 https://api.github.com/repos/nextcloud/android/pulls/$3 | grep \"ref\": | grep -v master | cut -d"\"" -f4
|
||||
fi
|
|
@ -10,7 +10,7 @@
|
|||
ruby scripts/lint/lint-up.rb $1 $2 $3
|
||||
|
||||
returnValue=$?
|
||||
if [ $returnValue -eq 0 ]; then
|
||||
if [ $3 = "master" ]; then
|
||||
echo "New master at: https://nextcloud.kaminsky.me/index.php/s/tXwtChzyqMj6I8v"
|
||||
curl -u $4:$5 -X PUT https://nextcloud.kaminsky.me/remote.php/webdav/droneLogs/master.html --upload-file build/reports/lint/lint.html
|
||||
exit 0
|
||||
|
|
Загрузка…
Ссылка в новой задаче