Merge pull request #4258 from nextcloud/enhanceDroneCheck

check if drone should run: also when build.gradle changed
This commit is contained in:
Andy Scherzinger authored and GitHub committed 2019-07-25 10:42:20 +02:00
commit 3949238de0
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh -e
export BRANCH=$(scripts/analysis/getBranchBase.sh $1 $2 $3 | sed s'/"//'g)
if [ $(git diff --name-only origin/$BRANCH | grep -c "^src") -eq 0 ] ; then
if [ $(git diff --name-only origin/$BRANCH | grep -cE "^src|build.gradle") -eq 0 ] ; then
echo "No source files changed"
exit 1
else