add library commit hash for reproducable builds

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-12-16 08:34:00 +01:00
parent b56a6b930b
commit 0ad5785998
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

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"