nextcloud-android/scripts/checkIfRunDrone.sh
tobiasKaminsky c78c79aaf1
check if drone should run: also when build.gradle changed
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2019-07-25 08:38:03 +02:00

10 lines
296 B
Bash
Executable file

#!/bin/sh -e
export BRANCH=$(scripts/analysis/getBranchBase.sh $1 $2 $3 | sed s'/"//'g)
if [ $(git diff --name-only origin/$BRANCH | grep -cE "^src|build.gradle") -eq 0 ] ; then
echo "No source files changed"
exit 1
else
echo "Source files changed -> continue with CI"
exit 0
fi