mirror of
https://github.com/nextcloud/android.git
synced 2025-07-23 01:02:01 +00:00
ci: raise commit range to hit lib change commit
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
@ -8,8 +8,8 @@ snapshotCount=$(./gradlew dependencies | grep SNAPSHOT -c)
|
||||
betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
|
||||
libraryHash=$(grep androidLibraryVersion build.gradle | cut -d= -f2 | tr -d \")
|
||||
|
||||
lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 20)
|
||||
baseBranch="master"
|
||||
lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 10)
|
||||
|
||||
if [[ $(echo "$lastHashes" | grep -c $libraryHash) -ne 1 ]]; then
|
||||
echo "Library commit not within last 10 hashes, please rebase!"
|
||||
|
Reference in New Issue
Block a user