repo created
This commit is contained in:
commit
1ef725ef20
2483 changed files with 278273 additions and 0 deletions
25
scripts/updateLibraryHash.sh
Executable file
25
scripts/updateLibraryHash.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# 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'"')
|
||||
|
||||
git fetch
|
||||
git checkout master
|
||||
git pull
|
||||
|
||||
[[ $latestCommit == "$currentCommit" ]] && exit # nothing to do
|
||||
|
||||
git fetch
|
||||
git checkout -B update-library-"$(date +%F)" origin/master
|
||||
|
||||
sed -i s"#androidLibraryVersion\ =.*#androidLibraryVersion =\"$latestCommit\"#" build.gradle
|
||||
./gradlew --console=plain --dependency-verification lenient -q --write-verification-metadata sha256,pgp help
|
||||
|
||||
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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue