We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 803230c commit 928d826Copy full SHA for 928d826
gha_build.sh
@@ -64,13 +64,15 @@ function sample {
64
if [[ "$?" -ne 0 ]]; then
65
exit 1
66
fi
67
- cd ${SAMPLE_FOLDER} && gradle -q wrapper
68
- if [[ "$?" -ne 0 ]]; then
69
- exit 1
70
- fi
71
- cd ${SAMPLE_FOLDER} && ./gradlew -q clean build
72
73
+ if [ -n "$(find ${SAMPLE_FOLDER} -name '*gradle*' | head -1)" ]; then
+ cd ${SAMPLE_FOLDER} && gradle -q wrapper
+ if [[ "$?" -ne 0 ]]; then
+ exit 1
+ fi
+ cd ${SAMPLE_FOLDER} && ./gradlew -q clean build
74
75
76
77
done
78
}
0 commit comments