Bläddra i källkod

Merge pull request #5575 from nextcloud/devLibraryChange

update dev changelog recognition for updating library
Andy Scherzinger 5 år sedan
förälder
incheckning
4d231841d0
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      scripts/buildDev

+ 2 - 3
scripts/buildDev

@@ -1,5 +1,6 @@
 #!/bin/bash
 date=$(date +%Y%m%d)
+oldLibraryCommit=$(grep "androidLibraryVersion\ =" build.gradle)
 libraryCommit=$(curl https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
 
 # use current date for version code/name
@@ -50,10 +51,8 @@ if echo "$changelog" | grep -q 'tx-robot'; then
 	changelog="${changelog}"$'\nUpdate translations'
 fi
 
-libraryCommit=$(curl https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
-
 # Check if the library was updated
-if ! grep -q libraryCommit build.gradle; then
+if ! echo $oldLibraryCommit | grep -q $libraryCommit; then
 	changelog="${changelog}"$'\nUpdate Nextcloud Android library'
 fi