Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 2f2c9112 authored by tobiasKaminsky's avatar tobiasKaminsky
Browse files

merge commit should always run CI

parent 291741cf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
#!/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 -Ec "^src|build.gradle") -eq 0 ] ; then
    echo "No source files changed"