From 4e2d5fa5f1bea8a3231d51d120bdd451f312f9b8 Mon Sep 17 00:00:00 2001 From: brahmkshatriya <69040506+brahmkshatriya@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:20:15 +0530 Subject: [PATCH] fix versioning --- .github/workflows/build.yml | 2 +- app/build.gradle.kts | 4 ++-- ext/build.gradle.kts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47db3d3..fd47a68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,7 @@ jobs: uses: sgpublic/delete-release-action@master with: release-drop: true - release-keep-count: 3 + release-keep-count: 2 release-drop-tag: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 079c371..d793c39 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -28,7 +28,7 @@ val extUpdateUrl: String? by project val gitHash = execute("git", "rev-parse", "HEAD").take(7) val gitCount = execute("git", "rev-list", "--count", "HEAD").toInt() val verCode = gitCount -val verName = gitHash +val verName = "v$gitHash" tasks.register("uninstall") { exec { @@ -50,7 +50,7 @@ android { put("type", "dev.brahmkshatriya.echo.${extType}") put("id", extId) put("class_path", "dev.brahmkshatriya.echo.extension.${extClass}") - put("version", "v$verName") + put("version", verName) put("version_code", verCode.toString()) put("icon_url", extIconUrl ?: "") put("app_name", "Echo : $extName Extension") diff --git a/ext/build.gradle.kts b/ext/build.gradle.kts index 31db3bd..ee78b19 100644 --- a/ext/build.gradle.kts +++ b/ext/build.gradle.kts @@ -45,7 +45,7 @@ val extUpdateUrl: String? by project val gitHash = execute("git", "rev-parse", "HEAD").take(7) val gitCount = execute("git", "rev-list", "--count", "HEAD").toInt() val verCode = gitCount -val verName = gitHash +val verName = "v$gitHash" publishing { publications {