Skip to content

Commit f8d175a

Browse files
ci: raise commit range to hit lib change commit
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 9cf3f15 commit f8d175a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/analysis/detectWrongSettings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ snapshotCount=$(./gradlew dependencies | grep SNAPSHOT -c)
88
betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
99
libraryHash=$(grep androidLibraryVersion build.gradle | cut -d= -f2 | tr -d \")
1010

11+
lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 20)
1112
baseBranch="master"
12-
lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 10)
1313

1414
if [[ $(echo "$lastHashes" | grep -c $libraryHash) -ne 1 ]]; then
1515
echo "Library commit not within last 10 hashes, please rebase!"

0 commit comments

Comments
 (0)