Skip to content

Commit 68dc86e

Browse files
authored
Fix tag to version conversion (#22)
Signed-off-by: conanoc <conanoc@gmail.com>
1 parent e767c04 commit 68dc86e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Publish
2424
run: ./gradlew publishAllPublicationsToGithubRepository
2525
env:
26-
VERSION: ${{ github.ref }}
26+
VERSION: ${{ github.ref_name }}
2727
- name: Create Release
2828
id: create_release
2929
uses: softprops/action-gh-release@v1

ariesframework/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ if (secretPropsFile.exists()) {
8282
ext["version"] = System.getenv("VERSION")
8383
}
8484

85+
ext["version"] = ext["version"]?.replaceFirst("v", "")
86+
8587
def getExtraString(name) {
8688
return ext[name] ?: ""
8789
}

0 commit comments

Comments
 (0)