From 54b81a1fc3ed97a817e3042d415e82d6f20df286 Mon Sep 17 00:00:00 2001 From: Dmytro <13066272+TheElan@users.noreply.github.com> Date: Sun, 26 Dec 2021 23:10:36 +0200 Subject: [PATCH] use timestamp to version buildscript --- .github/scripts/update-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/update-version.sh b/.github/scripts/update-version.sh index 6ab1b17..228e637 100755 --- a/.github/scripts/update-version.sh +++ b/.github/scripts/update-version.sh @@ -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"