use timestamp to version buildscript

This commit is contained in:
Dmytro authored and GitHub committed 2021-12-26 23:10:36 +02:00
1 parent 0d79ce05ca
commit 54b81a1fc3
1 file changed
+1 -1
+1 -1
View File
@@ -1,5 +1,5 @@
if [ ! -z $(git diff --name-only HEAD HEAD~1 | grep build.gradle) ]; then
new_version="$(git log -n1 --format=format:"%H")"
new_version="$(date +%s)"
sed --in-place "s!^//version:.*!//version: $new_version!g" build.gradle
git add build.gradle
git commit -m "[ci skip] update build script version to $new_version"