nextcloud-android/scripts/checkIfRunDrone.sh

11 lines
282 B
Bash
Raw Normal View History

#!/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
echo "No source files changed"
exit 1
else
echo "Source files changed -> continue with CI"
exit 0
fi