gitlab-ci: gradle job generates required changes for new versions

This commit is contained in:
Hans-Christoph Steiner 2021-01-24 11:57:46 +01:00
parent b8cd4396f4
commit eec0d3a336
3 changed files with 45 additions and 6 deletions

View file

@ -231,11 +231,12 @@ gradle:
LANG: C.UTF-8
script:
- apk add --no-cache ca-certificates git python3
# if this is a merge request fork, then only check if makebuildserver changed
# if this is a merge request fork, then only check if makebuildserver or gradlew-fdroid changed
- if [ "$CI_PROJECT_NAMESPACE" != "fdroid" ]; then
git fetch https://gitlab.com/fdroid/fdroidserver.git;
for f in `git diff --name-only --diff-filter=d FETCH_HEAD...HEAD`; do
test "$f" == "makebuildserver" && export CHANGED="yes";
test "$f" == "gradlew-fdroid" && export CHANGED="yes";
done;
test -z "$CHANGED" && exit;
fi