mirror of
https://github.com/nextcloud/android.git
synced 2024-11-30 18:21:10 +03:00
3a76ff78df
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
15 lines
408 B
Bash
Executable file
15 lines
408 B
Bash
Executable file
#!/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|screenshots|build.gradle|.drone.yml") -eq 0 ] ; then
|
|
echo "No source files changed"
|
|
exit 1
|
|
else
|
|
echo "Source files changed -> continue with CI"
|
|
exit 0
|
|
fi
|