Skip to content

Commit f8d175a

Browse files
ci: raise commit range to hit lib change commit
Signed-off-by: Andy Scherzinger <[email protected]>
1 parent 9cf3f15 commit f8d175a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/analysis/detectWrongSettings.sh

+1-1
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)