merge commit should always run drone

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-07-25 11:54:12 +02:00
parent 3949238de0
commit 53633991d2
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -1,5 +1,10 @@
#!/bin/sh -e
if [ -z $3 ] ; then
echo "Merge commit to master -> continue with CI"
exit 0
fi
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"