Branch added
This commit is contained in:
parent
87bcfa54ea
commit
79a357537b
2340 changed files with 100899 additions and 37798 deletions
|
|
@ -2,16 +2,16 @@
|
|||
#
|
||||
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
||||
# SPDX-FileCopyrightText: 2024 Tobias Kaminsky <tobias@kaminsky.me>
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
latestCommit=$(curl -s https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
|
||||
currentCommit=$(grep "androidLibraryVersion" build.gradle | cut -f2 -d'"')
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
|
||||
|
||||
git fetch
|
||||
git checkout master
|
||||
git pull
|
||||
|
||||
[[ $latestCommit == "$currentCommit" ]] && exit # nothing to do
|
||||
latestCommit=$(curl -s https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
|
||||
currentCommit=$(grep "androidLibraryVersion" build.gradle | cut -f2 -d'"')
|
||||
|
||||
[[ $latestCommit == "$currentCommit" ]] && echo "Nothing to do. Commit is: $latestCommit" && exit # nothing to do
|
||||
|
||||
git fetch
|
||||
git checkout -B update-library-"$(date +%F)" origin/master
|
||||
|
|
@ -21,5 +21,7 @@ sed -i s"#androidLibraryVersion\ =.*#androidLibraryVersion =\"$latestCommit\"#"
|
|||
|
||||
git add build.gradle
|
||||
git add gradle/verification-metadata.xml
|
||||
git commit -s -m "Update library"
|
||||
gh pr create --head "$(git branch --show-current)" --title "Update library $(date +%F)" --body "Update library to latest commit"
|
||||
git commit -s -m "Update library to $(date +%F)"
|
||||
|
||||
git push -u origin HEAD
|
||||
gh pr create --fill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue