From ef97707605a0def6688bd7cb7e23904cbcc3c8c7 Mon Sep 17 00:00:00 2001 From: ArtDev <45949002+artdeell@users.noreply.github.com> Date: Sat, 17 Jul 2021 14:19:21 +0300 Subject: [PATCH] Update build.gradle --- app_pojavlauncher/build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app_pojavlauncher/build.gradle b/app_pojavlauncher/build.gradle index ff3812cc1..8784c0fa4 100644 --- a/app_pojavlauncher/build.gradle +++ b/app_pojavlauncher/build.gradle @@ -2,7 +2,13 @@ apply plugin: 'com.android.application' def getDate() { return new Date().format('yyyyMMdd')} -def getDateSeconds() { return new Date().format('yMMddHHss')} +def getDateSeconds() { + if(System.getenv("GITHUB_ACTIONS").equals("true")) { + return "$(9934841+Integer.parseInt(System.getenv("GITHUB_RUN_NUMBER")))" + }else{ + return "172005" + } +} def getVersionName = { // Get the last version tag, as well as the short head of the last commit