We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4828244 commit a61af07Copy full SHA for a61af07
2 files changed
.github/workflows/release.yml
@@ -34,6 +34,7 @@ jobs:
34
JRELEASER_GPG_PASSPHRASE: "${{ secrets.JRELEASER_GPG_PASSPHRASE }}"
35
JRELEASER_GITHUB_TOKEN: ${{ github.token }}
36
JRELEASER_MAVENCENTRAL_STAGE: "FULL"
37
+ NANOFIX_VERSION: "refs/tags/${{ github.event.release.tag_name }}"
38
- name: Add Artifact to GitHub Release
39
uses: softprops/action-gh-release@v1
40
with:
build.gradle
@@ -87,7 +87,7 @@ class Version
87
88
static Version resolve()
89
{
90
- String gitVersion = System.getenv('GITHUB_REF')
+ String gitVersion = System.getenv("NANOFIX_VERSION") ?: System.getenv('GITHUB_REF')
91
if (!gitVersion) return Version.NO_VERSION
92
def matcher = gitVersion =~ 'refs/tags/v([0-9]+)\\.([0-9]+)\\.([0-9]+)'
93
if (matcher)
0 commit comments