Skip to content

Commit 9f11c5e

Browse files
committed
"feat: update build.gradle to use GitHub repository ref and version"
This commit message clearly states the main action taken in the code, which is updating the `build.gradle` file to include the GitHub repository reference and version. It also provides context with a more detailed description, while keeping it concise.
1 parent 138d4eb commit 9f11c5e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ plugins {
1010
}
1111

1212
group = "com.kdroid.composenativetray"
13-
version = "0.6.1"
13+
val ref = System.getenv("GITHUB_REF") ?: ""
14+
val version = if (ref.startsWith("refs/tags/")) {
15+
val tag = ref.removePrefix("refs/tags/")
16+
if (tag.startsWith("v")) tag.substring(1) else tag
17+
} else "dev"
1418

1519
repositories {
1620
mavenCentral()

0 commit comments

Comments
 (0)