From 35e35bbcede9fb61a7c24074f6cf932e48904c87 Mon Sep 17 00:00:00 2001 From: michaelbel Date: Wed, 30 Oct 2024 22:19:44 +0300 Subject: [PATCH] Update project --- .github/workflows/ci.yml | 2 +- app/build.gradle.kts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bb57f04..ab3a6fc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: id: version_code run: | VERSION_CODE=$(./gradlew printVersionCode -q) - echo "VERSION_CODE=VERSION_CODE" >> $GITHUB_ENV + echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV - name: send telegram message uses: appleboy/telegram-action@master diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 96fffc75..52221ae8 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -32,7 +32,7 @@ android { applicationId = "org.michaelbel.template" // Replace with your own applicationId minSdk = libs.versions.min.sdk.get().toInt() targetSdk = libs.versions.target.sdk.get().toInt() - versionCode = 1234//gitCommitsCount + versionCode = gitCommitsCount versionName = "1.0" setProperty("archivesBaseName", "Template-v$versionName($versionCode)") // Replace with your own app's name } @@ -110,7 +110,7 @@ tasks.register("printVersionName") { tasks.register("printVersionCode") { doLast { - println(android.defaultConfig.versionCode) + println(android.defaultConfig.versionCode.toString()) } }