From 68dc86e638cc60d7600e3adb4d41ad832203391c Mon Sep 17 00:00:00 2001 From: conanoc Date: Thu, 22 Feb 2024 14:10:23 +0900 Subject: [PATCH] Fix tag to version conversion (#22) Signed-off-by: conanoc --- .github/workflows/release.yml | 2 +- ariesframework/build.gradle | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33f50f0..4064bc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: Publish run: ./gradlew publishAllPublicationsToGithubRepository env: - VERSION: ${{ github.ref }} + VERSION: ${{ github.ref_name }} - name: Create Release id: create_release uses: softprops/action-gh-release@v1 diff --git a/ariesframework/build.gradle b/ariesframework/build.gradle index ac12616..9f67be0 100644 --- a/ariesframework/build.gradle +++ b/ariesframework/build.gradle @@ -82,6 +82,8 @@ if (secretPropsFile.exists()) { ext["version"] = System.getenv("VERSION") } +ext["version"] = ext["version"]?.replaceFirst("v", "") + def getExtraString(name) { return ext[name] ?: "" }