Browse Source

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

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 5 years ago
parent
commit
c78c79aaf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/checkIfRunDrone.sh

+ 1 - 1
scripts/checkIfRunDrone.sh

@@ -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