check if drone should run: also when build.gradle changed

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-07-25 08:38:03 +02:00
parent 4d1016ebfe
commit c78c79aaf1
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

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