Skip to content

Commit a61af07

Browse files
Explicitly Pass Release Version Through
Co-authored-by: Markus Stoy <markus.stoy@lmax.com>
1 parent 4828244 commit a61af07

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
JRELEASER_GPG_PASSPHRASE: "${{ secrets.JRELEASER_GPG_PASSPHRASE }}"
3535
JRELEASER_GITHUB_TOKEN: ${{ github.token }}
3636
JRELEASER_MAVENCENTRAL_STAGE: "FULL"
37+
NANOFIX_VERSION: "refs/tags/${{ github.event.release.tag_name }}"
3738
- name: Add Artifact to GitHub Release
3839
uses: softprops/action-gh-release@v1
3940
with:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Version
8787

8888
static Version resolve()
8989
{
90-
String gitVersion = System.getenv('GITHUB_REF')
90+
String gitVersion = System.getenv("NANOFIX_VERSION") ?: System.getenv('GITHUB_REF')
9191
if (!gitVersion) return Version.NO_VERSION
9292
def matcher = gitVersion =~ 'refs/tags/v([0-9]+)\\.([0-9]+)\\.([0-9]+)'
9393
if (matcher)

0 commit comments

Comments
 (0)