Merge pull request #5013 from nextcloud/addLibCommit

add library commit hash for reproducable builds
This commit is contained in:
Tobias Kaminsky 2019-12-16 08:34:27 +01:00 committed by GitHub
commit 74ab9a05d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,8 @@ lastBuildTime=$(date --date="$(git log -1 --format=%ai $(git tag | grep dev | ta
changelog=$(git log --after=$lastBuildTime --pretty=oneline --abbrev-commit)
echo "$changelog" > src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
echo "library commit: $(curl https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')" >> src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
git add build.gradle
git add src/versionDev/fastlane/metadata/android/en-US/changelogs/$date.txt
git commit -m "daily dev $date" -m "$changelog"